Help plox - 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: Help plox (
/showthread.php?tid=113989)
Help plox -
sggassasin - 17.12.2009
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;
}
Re: Help plox -
fsnameless - 17.12.2009
nvm just report this post and have it removed lol i was thinking of something else
Re: Help plox -
pagie1111 - 17.12.2009
[pawnif(casemoney[playerid[ < 10000)[/pawn]
Re: Help plox -
sggassasin - 22.12.2009
nope that dident work could someone plz help me out
Re: Help plox -
LarzI - 22.12.2009
What is the purpose of this command?
Cause to me this all look messy...
Re: Help plox -
marharth - 22.12.2009
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?
Re: Help plox -
fsnameless - 29.12.2009
when you compile does it give any warnings?
Re: Help plox -
dice7 - 29.12.2009
Just remove the "casemoney[playerid]" checks -.-'