SA-MP Forums Archive
I get tag mismatch error even if i do everything right -See - 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: I get tag mismatch error even if i do everything right -See (/showthread.php?tid=282443)



I get tag mismatch error even if i do everything right -See - SourceCode - 11.09.2011

Here is the code

Код:
new float:Xa[MAX_PLAYERS];
new float:Ya[MAX_PLAYERS];
new float:Za[MAX_PLAYERS];
Код:
	GetPlayerPos(playerid, Xa[playerid], Ya[playerid], Za[playerid]);

Whats wrong in this?


Re: I get tag mismatch error even if i do everything right -See - Sasino97 - 11.09.2011

Quote:
Originally Posted by SourceCode
Посмотреть сообщение
Here is the code

Код:
new float:Xa[MAX_PLAYERS];
new float:Ya[MAX_PLAYERS];
new float:Za[MAX_PLAYERS];
Код:
	GetPlayerPos(playerid, Xa[playerid], Ya[playerid], Za[playerid]);

Whats wrong in this?
float is a function.
Float is a tag.

GetPlayerPos wants three parameters tagged "Float:" not "float:"

Quote from the PAWN Language Guide PDF:
Quote:
pawn is a “case sensitive” language: upper and lower case letters are considered
to be different letters. It would be an error to spell the function printf
in the above example as “PrintF”. Keywords and predefined symbols, like
the name of function “main”, must be typed in lower case.