27.02.2010, 17:47
Can anyone help me?
I have this code...
When I try to compile give this error
Line 89 is SetPlayerPos(playerid, rPos[rand][0], rPos[rand][1], rPos[rand][2]);
I have this code...
Код:
new Float:rPos[3][3] = { {3422.6,-447.5,210.8}, // pos 1 {4587.4455, 4789.8977, 1214.6544}, // pos 2 {1.021, 45.0114, 6444.0000} // pos 3 };
Код:
if(!strcmp(cmdtext,"/trampolim",true)) { new rand = random(sizeof(rPos)) SetPlayerPos(playerid, rPos[rand][0], rPos[rand][1], rPos[rand][2]); SendClientMessageToAll(0xDEEE20FF, "Alguйm foi para o trampolim (/trampolim)."); return 1; }
Код:
C:\Documents and Settings\Goncalo\Ambiente de trabalho\samp03asvr_R4_win32\filterscripts\base.pwn(89) : error 001: expected token: ";", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.