Samp or scripting bug?
#4

Quote:
Originally Posted by DeathOnaStick
Посмотреть сообщение
I think I don't understand your problem completely. So you have this /std command and if you delete it temporally, then the stuff with the commands works?
No, only that command doesn't work. All other commands do.
I can't use that command in game, but other commands I can.
Also, if I rename /std to /abc, I am able to use command /abc.


Quote:
Originally Posted by TheDeath
Посмотреть сообщение
So if you want to show "Server: That command doesn't exist. For list of commands /commands"
Код:
if(!strcmp(cmdtext,"/std",true,4) && !cmdtext[4])
    {
        CancelSelectTextDraw(playerid);
        SelectTextDraw(playerid, COLOR_YELLOW);
        return 1;
    }
    if(!strcmp(cmdtext,"/selecttextdraw",true,15) && !cmdtext[15] )
    {
        CancelSelectTextDraw(playerid);
        SelectTextDraw(playerid, COLOR_YELLOW);
        return 1;
    }
    return SendClientMessage(playerid,COLOR_GREEN2,"Server: That command doesn't exist. For list of commands /commands.");;
I think this might work
This is completly same as I put. If I type any other commands that doesn't exist it will show "Server: That command doesn't exist. For list of commands /commands.", but if I type /std it shows SERVER: Unknown command".
Reply


Messages In This Thread
Samp or scripting bug? - by Roko_foko - 25.07.2012, 13:21
Re: Samp or scripting bug? - by DeathOnaStick - 25.07.2012, 13:55
Re: Samp or scripting bug? - by TheDeath - 25.07.2012, 13:57
Re: Samp or scripting bug? - by Roko_foko - 25.07.2012, 13:59
Re: Samp or scripting bug? - by DeathOnaStick - 25.07.2012, 14:05
Re: Samp or scripting bug? - by Roko_foko - 25.07.2012, 14:10
Re: Samp or scripting bug? - by DeathOnaStick - 25.07.2012, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)