Posts: 371
Threads: 104
Joined: May 2009
Reputation:
0
hi there i need the code so i can go ... /makecase 34239 thats all i need to know could someone plz help
Posts: 64
Threads: 0
Joined: Jul 2008
Reputation:
0
I don't understood, give us more information.
Posts: 371
Threads: 104
Joined: May 2009
Reputation:
0
well here this is my command
if (strcmp(cmd, "/admincase", true) ==0 )
{
if(PlayerInfo[playerid][Admin] == 5)
{
tmp = strtok(cmdtext, idx);
if(casemoney < 10000)
{
SendClientMessage(playerid, COLOR_GRAD1, "You Have To Make The Case Higher Then $10,000");
}
if(casemoney > 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;
}
i need it to produce a number above 10000 and the other 1 but i dont know how to so could you help me out thx
Posts: 64
Threads: 0
Joined: Jul 2008
Reputation:
0
If I understood, replace all casemoney with strval(tmp).