Tag Mismatch
#1

Код:
   new iS = Player[playerid][PlayerGang];
    new Text3D:label = Create3DTextLabel("%s",Gang[iS][GangName],0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
warning
warning 213: tag mismatch

if i used this so
Код:
   new iS = Player[playerid][PlayerGang];
    new Text3D:label = Create3DTextLabel("%s",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0,Gang[iS][GangName]);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
so it compiled sucess full but in game it show %s
Reply
#2

new Text3D:label[MAX_PLAYERS];
new iS = Player[playerid][PlayerGang];
label[playerid] = Create3DTextLabel("%s",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
format(string,sizeof(string),"%s",inputtext);
Update3DTextLabelText(Gang[iS][GangName], 0xFF0000FF, string);
Reply
#3

You need to format() it in different code, not inside Create3DTextLabel.

Here's a fixed version, i didn't use format in the code below as gangname is a string already.
Код:
new Text3D:label = Create3DTextLabel(Gang[iS][GangName],0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Reply
#4

Ty bro it helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)