whats wrong here?
#1

Код:
	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."
Reply
#2

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.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)