Whats wrong with this?
#1

Код:
	new mymsg[10],test;
	test = randomEx(200,500);
	format(mymsg,sizeof(mymsg),"%s",randomEx(200,500));
	SendClientMessage(playerid, lime, mymsg);
Код:
stock randomEx(min, max)
{
    //Credits to ******
    new rand = random(max-min)+min;
    return rand;
}
It returns some random letter..
Reply
#2

Quote:

format(mymsg,sizeof(mymsg),"%s",randomEx(200,500));

Use %d or %i instead of %s for integers.

https://sampwiki.blast.hk/wiki/Format
Reply
#3

Ohhhh hate these stupid wrongs i do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)