Help plox
#1

hey could someone help me here i have some code but when i type the command in it say it hase to be over 10 000 but i dont whant it to do that i whant it to produce the string so could someone help plz



here is the code
Код:
if (strcmp(cmd, "/admincase", true) ==0 )
	{
	if(PlayerInfo[playerid][Admin] == 5)
  {
 if(casemoney[playerid] <= 10000)
 {
   SendClientMessage(playerid, COLOR_GRAD1, "You Have To Make The Case Higher Then $10,000");
  }
 else if(casemoney[playerid] >= 100000000)
	{
  SendClientMessage(playerid, COLOR_GRAD1, "You Have To Make The Case Lower Then $100,000,000");
	}
	else
	{
	 casedrop[playerid] = 1;
  format(string, sizeof(string), "You Have Made A admin case Worth $%d", casemoney);
  SendClientMessage(playerid, 0x00C2ECFF, string);
  format(string, sizeof(string), "An Admin Case Hase Been Made And $%d Is In It Go Find It", casemoney);
  SendClientMessageToAll(0x00C2ECFF, string);
		}
  }
  else
  {
  SendClientMessage(playerid, COLOR_GRAD1, "You Are Not A Level 5 Admin");
  }
	return 1;
	}
Reply
#2

nvm just report this post and have it removed lol i was thinking of something else
Reply
#3


[pawnif(casemoney[playerid[ < 10000)[/pawn]
Reply
#4

nope that dident work could someone plz help me out
Reply
#5

What is the purpose of this command?
Cause to me this all look messy...
Reply
#6

Quote:
Originally Posted by lrZ^ aka LarzI
What is the purpose of this command?
Cause to me this all look messy...
It seems like he wants to make a pickup with a certain amount of cash...

The code you have won't do anything but send messages...

What is the CaseDrop?
Reply
#7

when you compile does it give any warnings?
Reply
#8

Just remove the "casemoney[playerid]" checks -.-'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)