SA-MP Forums Archive
Help please - 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: Help please (/showthread.php?tid=313304)



Help please - RoleplayEditor - 25.01.2012

This is my code
pawn Код:
stock TeamBlueSettings(playerid) {
    SetPlayerTeam(playerid,1);
    SetPlayerColor(playerid,COLOR_BLUE);
    gTeam[playerid] = TEAM_BLUE;
    GivePlayerWeapon(playerid,24,10);
}
    stock TeamRedSettings(playerid) {
    SetPlayerTeam(playerid,0);
    SetPlayerColor(playerid,COLOR_RED);
    gTeam[playerid] = TEAM_Terrorist;
    GivePlayerWeapon(playerid,24,10);
}
Error is

Код:
error 001: expected token: ";", but found "stock"
Help please :S
Well when i do it ; it compile but will it work ?


Re: Help please - [Diablo] - 25.01.2012

you are probably missing a ';' before the first stock.


Re: Help please - Shoulen - 25.01.2012

Edit: What he said ^


Re: Help please - RoleplayEditor - 25.01.2012

U sure it will work D: ?