Textdraw string help - 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 string help (
/showthread.php?tid=420642)
Textdraw string help -
Strier - 06.03.2013
pawn Код:
public OnGameModeInit()
{
SetTimer("Updater", 5000, true);
blablablablabla
return 1;
}
pawn Код:
forward Updater(); //Must always forward a timer, read the set timer topic in the wiki for more info.
public Updater()
{
foreach(Player, playerid)
{
new TDstring[150], scr;
scr = GetPlayerScore(playerid);
TextDrawShowForPlayer(playerid, KillsStr[playerid]);
TextDrawShowForPlayer(playerid, ScrStr[playerid]);
format(TDstring, sizeof(TDstring), " %d ", pInfo[playerid][Kills]); //Formats the string, for more info on format, visit the wiki.
TextDrawSetString(KillsStr[playerid], TDstring);
format(TDstring, sizeof(TDstring), " %d ", scr);
TextDrawSetString(ScrStr[playerid], TDstring);
}
return 1;
}
Neither scores are counting, please help me :/
Re: Textdraw string help -
[MG]Dimi - 06.03.2013
Hide textdraws, update strings, show textdrows
Respuesta: Textdraw string help -
Strier - 06.03.2013
I've fixed it already, thanks