I get tag mismatch error even if i do everything right -See
#1

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

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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)