command help
#1

hi there i need the code so i can go ... /makecase 34239 thats all i need to know could someone plz help
Reply
#2

I don't understood, give us more information.
Reply
#3

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
Reply
#4

If I understood, replace all casemoney with strval(tmp).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)