27.08.2010, 13:27
I have got a next problem with my script, I hope you guys will fix this... Please fix all this script... Thanks
The script:
Errors I get:
...filterscripts\Adminscript.pwn(2346) : error 017: undefined symbol "P"
...filterscripts\Adminscript.pwn(2346) : warning 215: expression has no effect
...filterscripts\Adminscript.pwn(2346) : error 001: expected token: ";", but found "]"
...filterscripts\Adminscript.pwn(2346) : error 029: invalid expression, assumed zero
...filterscripts\Adminscript.pwn(2346) : fatal error 107: too many error messages on one line
Lib
The script:
Код:
dcmd_chp(playerid,params[]) { if(PlayerInfo[playerid][Level] >= 5) { GetPlayerPos(playerid,P[0],P[1],P[2]); //HERE ARE ERRORS GetPlayerFacingAngle(playerid,P[3]); format(str,128,"You have created a Hidden Package! Use command /say or /announce to tell other to find this!"); SendClientMessage(blue,str); if(Package != 0) DestroyPickup(Package); P[0] += (1.0 * floatsin(-P[3], degrees)); P[1] += (1.0 * floatcos(-P[3], degrees)); Package = CreatePickup(1210,P[0],P[1],P[2]-0.5,0.0,0.0,0.0); } else return SendClientMessage(playerid,red,"ERROR: Only Admins with level 5 and higher can use this command"); }
...filterscripts\Adminscript.pwn(2346) : error 017: undefined symbol "P"
...filterscripts\Adminscript.pwn(2346) : warning 215: expression has no effect
...filterscripts\Adminscript.pwn(2346) : error 001: expected token: ";", but found "]"
...filterscripts\Adminscript.pwn(2346) : error 029: invalid expression, assumed zero
...filterscripts\Adminscript.pwn(2346) : fatal error 107: too many error messages on one line
Lib