23.05.2012, 13:38
if(strcmp(cmd, "/signcheck", true) == 0)
{
if(PlayerInfo[playerid][pCheck] == 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /signcheck [check number]");
return 1;
}
new checknumber = strval(tmp);
if(checknumber == CheckNumber[playerid])
{
SendPayCheck(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Invalid check number.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have a check ready to pick up.");
return 1;
}
return 1;
}
{
if(PlayerInfo[playerid][pCheck] == 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /signcheck [check number]");
return 1;
}
new checknumber = strval(tmp);
if(checknumber == CheckNumber[playerid])
{
SendPayCheck(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Invalid check number.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You don't have a check ready to pick up.");
return 1;
}
return 1;
}