Witam wszystkich chcia?bym prosi? o pomoc.
Mam sobie dwa gangi grove i ballas.
Aby do??czy? do takiego gangu trzeba wej?? w pickup.
I chcia?bym zrobi? zapis do mysql.
Mam edycje fulldm.
I tak:
w mysql dodaj? tabelk? Gang.
I chce aby zapis wygl?da? w ten spos?b
Gang 0 = Brak gangu
Gang 1 = Gang Grove
Gang 2 = Gang Ballas.
O to w jaki spos?b gracz do??cza do danego gangu..
[code] if(pickupid == gangb)
{
if(GetPVarInt(playerid, "Grove") == 0)
{
if(GetPVarInt(playerid, "Ballas") == 0)
{
GetPlayerSkin(playerid);
switch(random(3))
{
case 0: SetPlayerSkin(playerid, 102);
case 1: SetPlayerSkin(playerid, 103);
case 2: SetPlayerSkin(playerid, 104);
}
SendClientMessage(playerid, GREEN, "» Wst?pi?e? do gangu Ballas. ");
SendClientMessage(playerid, GREEN, "» Mo?esz pisa? na czacie gangu wpisuj?c ! [tresc] np. ! elo . ");
SendClientMessage(playerid, GREEN, "» W ka?dej chwili mo?esz opu?ci? gang wpisuj?c komend? /gango . ");
SetPVarInt(playerid, "Ballas", 1);
return 1;
}
}
}
if(pickupid == ganggs)
{
if(GetPVarInt(playerid, "Ballas") == 0)
{
if(GetPVarInt(playerid, "Grove") == 0)
{
GetPlayerSkin(playerid);
switch(random(3))
{
case 0: SetPlayerSkin(playerid, 10... |