SA-MP Forums Archive
help? - 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? (/showthread.php?tid=469715)



Konstantinos HELP? - Muslimzz - 14.10.2013

line:
GetPlayerHealth(player1,sHP[player1]);

error types:
error 017: undefined symbol "sHP"
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line


Re: how to remove these error? - Konstantinos - 14.10.2013

Please do not do that! Just stop pasting stuff into your mode and after getting an error, you create a new thread. You can always reply to the previous threads and what do you see? It's the same error like the previous 'undefined symbol', although it's a float.

pawn Код:
new
    Float: sHP[ MAX_PLAYERS ]
;



Re: how to remove these error? - Muslimzz - 14.10.2013

new same error occur on this line


GetPlayerArmour(player1,sAP[player1]);


Re: help again konstantinos - Konstantinos - 14.10.2013

Do exactly the same but instead of sHP, replace it with sAP.

PS: Don't add my name to the title, please.


Re: help again konstantinos - Muslimzz - 14.10.2013

line:
GetPlayerPos(player1,sPos[player1][0],sPos[player1][1],sPos[player1][2]);


error:
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line


Re: helppppppp? - [LCK]Chris - 14.10.2013

Please read the manuals at http://www.compuphase.com/pawn/pawn.htm you need to study how to script pawn.


Re: helppppppp? - Muslimzz - 14.10.2013

line
GetPlayerPos(player1,sPos[player1][0],sPos[player1][1],sPos[player1][2]);


errors:
error 001: expected token: ",", but found "["
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line


Re: helppppppp? - Konstantinos - 14.10.2013

You need to copy those too because you're going to get errors, errors and errors.

pawn Код:
new
    Float: sPos[ MAX_PLAYERS ][ 3 ]
;
That's the last one I help you with. Try reading SA-MP Wiki and what Chris said. That's the basic.


Read my reply - Muslimzz - 14.10.2013

same error bro??

now a error added

Spos is already defined


Re: helppppppp? - Konstantinos - 14.10.2013

It's sPos, not Spos. You just need only 1 time the above code.

pawn Код:
new
    Float: sPos[ MAX_PLAYERS ][ 3 ]
;
GetPlayerPos(player1,sPos[player1][0],sPos[player1][1],sPos[player1][2]);
If you keep getting errors about sPos already defined (that I doubt), change the name to sPos_