[HELP] Tag Mismatch [+rep]
#1

This is where the tag mismatch is

pawn Код:
TextDrawSetString(sdisplay[playerid], string); // The actual changing of the textdraw
This is the string.
pawn Код:
format(string, sizeof(string), "%i MPH", s2[playerid]); // The textdraw string
This is the sdisplay.
pawn Код:
sdisplay[playerid] = TextDrawSetString(Speedometer[playerid], " ");
Help please!
Reply
#2

TextDrawSetString doesn't return anything. If you're trying to store the textdraw's ID you need to do this:

pawn Код:
new Text:sdisplay[MAX_PLAYERS];


sdisplay[playerid] = TextDrawCreate(..);

format()
TextDrawSetString(sdisplay[playerid], string);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)