SA-MP Forums Archive
Argument Type Mismatch - 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: Argument Type Mismatch (/showthread.php?tid=428476)



Argument Type Mismatch - Blackazur - 05.04.2013

Hello, i have an question i have always this error: error 035: argument type mismatch (argument 1)

Код:
new Text3D:evacuated[MAX_PLAYERS];
Код:
		    evacuated[playerid] = Create3DTextLabel("Evacuated", 0x99FF7FFF, 30.0, 40.0, 50.0, 40.0, 0);
		    Attach3DTextLabelToPlayer(evacuated, playerid, 0.0, 0.0, 0.7);
How to fix this?


Re: Argument Type Mismatch - stabker - 05.04.2013

Which line?


AW: Argument Type Mismatch - Blackazur - 05.04.2013

Attach3DTextLabelToPlayer(evacuated, playerid, 0.0, 0.0, 0.7);
this


Re: AW: Argument Type Mismatch - stabker - 05.04.2013

Quote:
Originally Posted by Blackazur
Посмотреть сообщение
Attach3DTextLabelToPlayer(evacuated, playerid, 0.0, 0.0, 0.7);
this
Because you forgot about cell id

Attach3DTextLabelToPlayer(evacuated[playerid], playerid, 0.0, 0.0, 0.7);

(Sorry for my bad English)