SA-MP Forums Archive
Please help me please... - 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)
+--- Thread: Please help me please... (/showthread.php?tid=427696)



Please help me please... - memeli11 - 02.04.2013

I cant use any command in my server , there is zcmd , When I write somethings on chat Icant read it When I enter a wrong command it does not say "server unknown command" and I cant use any command in my server please help please


Re: Please help me please... - Kestro - 02.04.2013

If you want it to say SERVER: Unkown Command, use this code.

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown command.");
    return 1;
}
and make sure you are putting return 1; at the end of each command and formatting them properly

pawn Код:
#define COLOR_WHITE 0xFFFFFFAA



Re: Please help me please... - FunnyBear - 02.04.2013

Quote:
Originally Posted by Kestro
Посмотреть сообщение
If you want it to say SERVER: Unkown Command, use this code.

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_WHITE, "SERVER: Unknown command.");
    return 1;
}

and make sure you are putting return 1; at the end of each command and formatting them properly
Fail, how do you know he has already defined COLOR_WHITE in his script.

Change COLOR_WHITE to -1


Re: Please help me please... - Kestro - 02.04.2013

Quote:
Originally Posted by FunnyBear
Посмотреть сообщение
Fail, how do you know he has already defined COLOR_WHITE in his script.

Change COLOR_WHITE to -1
Dude, stop going off topic, I even posted the #define for it. I can see where your -4 rep comes from. get mad.