SA-MP Forums Archive
[HELP] Dont get responed? - 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] Dont get responed? (/showthread.php?tid=157698)



[HELP] Dont get responed? - sTreTcheD - 07.07.2010

I have this code
Код:
        if (!strcmp(cmdtext,"/usedrugs",true)) {
            tmp = strtok(cmdtext,idx);
                if (!strlen(tmp)) {
                    SendClientMessage(playerid,COLOR_BLUE,"USAGE: /usedrugs [amount]");
                    return 1;
                }
                new no;
                no = strval(tmp);
                if (no > Drugs[playerid]) {
                    SendClientMessage(playerid,COLOR_BLUE,"You dont have enough drugs.");
                    return 1;
        }
        if (no > 0 && no < 5) {
            format(string,sizeof(string),"You take %d grams of drugs and you get a good feeling.",no);
                        SendClientMessage(playerid,COLOR_BLUE,string);
                        Recover[playerid] = 3;
                        RecoveryTime[playerid] += 10;
                        Drugs[playerid] -= no;
                        return 1;
                }
Now, I do:
Me: /usedrugs
Reply: USAGE: /usedrugs [amount]
~
Me: /usedrugs 3
And i dont get any reply, Even when i do:
Me: /usedrugs 1823716236482638746283628737623846
Its dont reply anything (It have to reply: You dont have enough drugs.)