SA-MP Forums Archive
ZBAN - 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: ZBAN (/showthread.php?tid=552751)



ZBAN - Ejecter - 26.12.2014

Код HTML:
#define ZBAN(%0,%1) SendClientMessage(%0, 0xFFFFFFAA, "{FF0000}X: {FFFFFF}The Player %0 as been banned. (Resson: %1)"); BanEx(%0,%1);
Error
Код HTML:
error 036: empty statement
Error Line:
Код HTML:
ZBAN(playerid, "Nothing");



Re : ZBAN - MCZOFT - 26.12.2014

wich command system do you use ? i can fix it


Re: ZBAN - Ejecter - 26.12.2014

strcmp

fixed
Код:
#define ZBAN(%0,%1) SendClientMessage(%0, 0xFFFFFFAA, "{FF0000}X: {FFFFFF}The Player %0 as been banned. (Resson: %1)"); BanEx(%0,%1)
I fixed this, and now i have other problem
is not show the ban message


Re : ZBAN - MCZOFT - 26.12.2014

PHP код:
public OnPlayerCommandText(playeridcmdtext[]) 
PHP код:

    
if(!strcmp(cmdtext"/ZBAN"true5))
    {
        if(!
cmdtext[5])return SendClientMessage(playerid0xFF0000FF"USAGE: /ZBAN " 'ID' 'time'  or write here what u want as USAGE");
        .(your ban code here .. )
        .(your ban code here .. )
        .(your ban code here .. )
        return 1;
    }
    return 0; 
good luck