10.04.2011, 10:02
Hey guys. When I use /duel 2000
it just doesn't work. It has to say: WORKS
But it shows me USAGE:/duel [bet(1000-5000)]");
what's wrong?
it just doesn't work. It has to say: WORKS
But it shows me USAGE:/duel [bet(1000-5000)]");
what's wrong?
pawn Код:
COMMAND:duel(playerid, params[])
{
if(sscanf(params,"d",duelmoney)) return SendClientMessage(playerid,COLOR_GREY,"USAGE:/duel [bet(1000-5000)]");
if(serverduel >= 1) return SendClientMessage(playerid,COLOR_RED,"Another duel has been started already");
if(serverduel <1000) return SendClientMessage(playerid,COLOR_GREY,"USAGE:/duel [bet(1000-5000)]");
else
{
SendClientMessage(playerid,COLOR_RED,"WORKS");
}
return 1;
}