SetSvarString info - 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: SetSvarString info (
/showthread.php?tid=590695)
SetSvarString info -
Face9000 - 02.10.2015
Hello, i have this code:
Код:
new TimeString[64];
format(TimeString,sizeof(TimeString),"%02d:%02d",GameMinutes,GameSeconds);
To show game time left until next game, i wanna save it in SetSVarString for using later for my own, i tried with:
Код:
SetSVarString("TimeLeft", "%02d:%02d",GameMinutes,GameSeconds);
But got "argument doesn't match definitions".
Is possible to pass a string with SetSvarString? How?
AW: SetSvarString info -
Kaliber - 02.10.2015
You have to format it..like:
PHP код:
new tmp[32];
format(tmp,sizeof(tmp),"%02d:%02d",GameMinutes,GameSeconds);
SetSVarString("TimeLeft", tmp);
Re: SetSvarString info -
Face9000 - 04.10.2015
Oh, thanks