PDA

View Full Version : 3DLabel Text error


Tanush123
29/12/2011, 10:38 PM
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:
bartext = CreateDynamic3DTextLabel(barid,Niceyellow,X,Y,Z,50 ,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,-1,-1,-1,50);

[HiC]TheKiller
29/12/2011, 10:39 PM
Make sure that barid is a string, not a numerical value / a float.

Norck
29/12/2011, 10:40 PM
Check this out:

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);