give random money and msg print if its low or high
#1

Код:
			    new mrand =random(1000);
			
	if (mrand <= 100) // i also tried >= or == and not worked
	{

	 format(string,sizeof(string),"u get under 100 money.!",mrand);
SendClientMessage(i,COLOR_RED,string);
	}
	else
	 format(string,sizeof(string),"u get more than 100 money.!",mrand);
SendClientMessage(i,COLOR_RED,string);
	{
but it wont show msg at all

it will only show msg about u got high moneyu but not for low money
Reply
#2

Try this:
pawn Код:
printf("DEBUG No.1 >> playerid = %d", i);
new mrand =random(1000);
if (mrand <= 100) SendClientMessage(i,COLOR_RED,"Under 100");
else SendClientMessage(i,COLOR_RED,"More than 100");
print("DEBUG No.2");
Does it print these messages I wrote in the console?
Reply
#3

LOL ITS WORKED
thanks you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)