3DLabel Text error - 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: 3DLabel Text error (
/showthread.php?tid=307278)
3DLabel Text error -
Tanush123 - 29.12.2011
ERROR:
Код:
D:\Users\Tanush\Desktop\SA-MP SERVERS\SA-MP Server Stunt\gamemodes\server.pwn(5281) : error 035: argument type mismatch (argument 1)
D:\Users\Tanush\Desktop\SA-MP SERVERS\SA-MP Server Stunt\gamemodes\server.pwn(5281) : warning 213: tag mismatch
Code:
pawn Код:
bartext = CreateDynamic3DTextLabel(barid,Niceyellow,X,Y,Z,50,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,-1,-1,-1,50);
Re: 3DLabel Text error -
[HiC]TheKiller - 29.12.2011
Make sure that barid is a string, not a numerical value / a float.
Re: 3DLabel Text error -
Norck - 29.12.2011
Check this out:
pawn Код:
new tmp_str[8];
format(tmp_str,sizeof(tmp_str),"%d",barid);
bartext = CreateDynamic3DTextLabel(tmp_str,Niceyellow,X,Y,Z,50,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,-1,-1,-1,50);