Textdraw Bug
#1

Made a textdraw for my script but its getting bugged can u tell me how to fix it?
here is the code and picture..
Код:
        TextDrawShowForPlayer(playerid, Rank1[playerid]);
	new str[100];
	format(str, sizeof(str),"~b~TEAM:~w~ %s - ~b~CLASS:~w~%s~n~~g~KILLS:~w~ %s - ~b~DEATHS:~w~ %s", GetPlayerTeam(playerid), GetClass(playerid), PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
	TextDrawSetString(Rank1[playerid], str);
Reply
#2

Код:
        TextDrawShowForPlayer(playerid, Rank1[playerid]);
	new str[100];
	format(str, sizeof(str),"~b~TEAM:~w~ %d - ~b~CLASS:~w~%s~n~~g~KILLS:~w~ %d - ~b~DEATHS:~w~ %d", GetPlayerTeam(playerid), GetClass(playerid), PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
	TextDrawSetString(Rank1[playerid], str);
Try this
Reply
#3

You are showing integer as a string, thats wrong. - %s - string, %d - decemical ( you can use it as a integer ), %i - integer, %f float.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)