PDA

View Full Version : tag mismatch


Sanady
16/07/2013, 08:29 AM
Hello everybody I have problem with that error which is in title code is here :


GangZones[i][label] = Create3DTextLabel(string,0xFFFFFFFF,GangZones[i][CP][0],GangZones[i][CP][1],GangZones[i][CP][2], 20.0, 0, 0);

SwisherSweet
16/07/2013, 08:34 AM
Your creating a 3d textlabel for a string how does that work?

dominik523
16/07/2013, 08:38 AM
this is example of creating 3d text labels with strings:

format(string, sizeof(string), "Packages Dropoff\n{FFFF00}/deliverpackages to deliver crates\nAvailable Products: %d/10000", Products);
ProductsText = CreateDynamic3DTextLabel(string, COLOR_RED, 2222.5107,-2682.7368,13.5409, 30);

Sanady
16/07/2013, 08:38 AM
Your creating a 3d textlabel for a string how does that work?

Lol I get it I know where is problem thanks :)

SwisherSweet
16/07/2013, 08:40 AM
this is example of creating 3d text labels with strings:

format(string, sizeof(string), "Packages Dropoff\n{FFFF00}/deliverpackages to deliver crates\nAvailable Products: %d/10000", Products);
ProductsText = CreateDynamic3DTextLabel(string, COLOR_RED, 2222.5107,-2682.7368,13.5409, 30);


Read my first post, you can't create a 3d textlabel for a string olny for playerid or i if your looping