whats wrong here? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: whats wrong here? (
/showthread.php?tid=70961)
whats wrong here? -
CJ101 - 28.03.2009
Код:
if(strcmp(cmdtext, "/lotto", true) == 0)
{
if (GetPlayerInterior(playerid) == 4)
{
MyLottoNumber[playerid] = random(100);
new string[150];
format(string, 150,"[LOTTO]: Your number is %s. the lotto drawing is at 24:00.",MyLottoNumber[playerid]);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
else
{
SendClientMessage(playerid,COLOR_RED, "[!] You are not in the 24-7.");
}
return 1;
}
when someone trys to get lotto, the following does not show right
"[LOTTO]: Your number is %s. the lotto drawing is at 24:00."
it ends up being something like
"[LOTTO]: Your number is Q. the lotto drawing is at 24:00."
Re: whats wrong here? -
gtaxume^ - 28.03.2009
i have no clue about this,so i rly shouldnt post here,but as far as i know,numbers are %d,im not sure tho.
Re: whats wrong here? -
CJ101 - 29.03.2009
Quote:
Originally Posted by [SAK
Vikt0r ]
i have no clue about this,so i rly shouldnt post here,but as far as i know,numbers are %d,im not sure tho.
|
yea your right. i get %s and %d confused sometimes.