what the fack? - 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: what the fack? (
/showthread.php?tid=505564)
what the fack? -
Extraordinariness - 09.04.2014
pawn Код:
forward plantboom(playerid);
public plantboom(playerid)
{
SendClientMessageToAll(0xFF0000FF, "[BOMB]: Bomb exploded!");
GivePlayerMoney(playerid, 12500);
GivePlayerScore(playerid, 5);
for(new i = 0; i < MAX_PLAYERS, i++)
{
planted[i] = 0;
}
return 1;
}
Код:
C:\Documents and Settings\eros\Desktop\SAMP Server\gamemodes\awp2.pwn(1154) : error 001: expected token: ";", but found ")"
pawn Код:
[LINE 1154]: for(new i = 0; i < MAX_PLAYERS, i++)
I do not want to put semi colon and that will output many errors.
Re: what the fack? -
cuchipkg - 09.04.2014
Код HTML:
for(new i = 0; i < MAX_PLAYERS; i++)
Error in " MAX_PLAYERS" this ";" not ",'
Re: what the fack? -
Extraordinariness - 09.04.2014
Whats wrong with that code? It's the same with mine.
Re: what the fack? -
cuchipkg - 09.04.2014
you write " , " in MAX_PLAYERS
Re: what the fack? -
awsomedude - 09.04.2014
Change
Код:
for(new i = 0; i < MAX_PLAYERS, i++)
To
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Re: what the fack? -
Extraordinariness - 09.04.2014
oh lol , sorry for my "idiot"-ness. xD