SA-MP Forums Archive
intoxication level - 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: intoxication level (/showthread.php?tid=70163)



intoxication level - CJ101 - 22.03.2009

ok i made this, but when i try /intoxlevel, it does not show level

Код:
	if(strcmp(cmdtext, "/intoxlevel", true) == 0)
 	{
 		new string[10];
	  format(string, sizeof(string), "[Level] - %d", IntoxLevel[playerid]);
 	  SendClientMessage(playerid,COLOR_WHITE,string);
	  return 1;
	}



Re: intoxication level - Dujma - 22.03.2009

This string contains more than 10 cells...


Re: intoxication level - Pghpunkid - 23.03.2009

make string[10] into string[32] or something bigger.


Re: intoxication level - tom_jonez - 23.03.2009

i say put it to 12 or so.

now it can be %d while %d = 1 or 11. double digits