Why It Is ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why It Is ? (
/showthread.php?tid=334855)
Why It Is ? (solved) -
RipLagger - 16.04.2012
Код:
//---- Join Gang
if(strcmp(tmp, "join", true) == 0)
{
new message[128];
new gangid = 0;
new PlayerName [500]
if(AccInfo[playerid][gang] != 0) return Inter_SendClientMessage(playerid, RandomColors[random(200)], "You are already in a gang.");
if(invited[playerid] == 0) return Inter_SendClientMessage(playerid, RandomColors[random(200)], "You have not been invited to join that gang.");
JoinGang(playerid, invited[playerid]);
format(message, 128, "[%s]%s", GangInfo[gangid][GANG_NAME], PlayerName);
SetPlayerName(playerid, message);
return 1;
}
errorcode
Код:
D:\GTASAN~1\GAMEMO~1\SATDM_~1.PWN(38986) : error 001: expected token: ";", but found "if"
Re: Why It Is ? -
Cjgogo - 16.04.2012
pawn Код:
//---- Join Gang
if(strcmp(tmp, "join", true) == 0)
{
new message[128];
new gangid = 0;
new PlayerName [500];
if(AccInfo[playerid][gang] != 0) return Inter_SendClientMessage(playerid, RandomColors[random(200)], "You are already in a gang.");
if(invited[playerid] == 0) return Inter_SendClientMessage(playerid, RandomColors[random(200)], "You have not been invited to join that gang.");
JoinGang(playerid, invited[playerid]);
format(message, 128, "[%s]%s", GangInfo[gangid][GANG_NAME], PlayerName);
SetPlayerName(playerid, message);
return 1;
}
Re: Why It Is ? -
RipLagger - 16.04.2012
thanks man.