#1

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
Reply
#2

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 ]
;
Reply
#3

new same error occur on this line


GetPlayerArmour(player1,sAP[player1]);
Reply
#4

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

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

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
Reply
#6

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

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
Reply
#8

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.
Reply
#9

same error bro??

now a error added

Spos is already defined
Reply
#10

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_
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)