Textdraw Bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw Bug (
/showthread.php?tid=585468)
Textdraw Bug -
Rog - 14.08.2015
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);
Re: Textdraw Bug -
SpikY_ - 14.08.2015
Код:
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
Re: Textdraw Bug -
bogushas - 14.08.2015
You are showing integer as a string, thats wrong. - %s - string, %d - decemical ( you can use it as a integer ), %i - integer, %f float.