19.10.2012, 15:41
Hello guys, I need a help.
This is my code
And I get an error saying :
The line which has the error is :
This is my code
Код:
if (strcmp("/eventtp", cmdtext, true, 10) == 0) { GetPlayerPos(playerid,X,Y,Z); ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Amount","What amount of players u want to tp?","OK","Cancel"); for(new i=1,i<=amount,i++) { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"ID","Enter the ID of the player u want to tp.","OK","Cancel"); Y=Y+2; SetPlayerPos(id,X,Y,Z); } return 1; } return 1; }
error 021: symbol already defined: "i"
The line which has the error is :
for(new i=1,i<=amount,i++)