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



ZCMD error? - andrey1311 - 04.09.2018

PHP код:
#include <a_samp>
#include <izcmd>
#include <a_mysql>
#include <streamer>
#include <foreach>
#include <sscanf2> 
PHP код:
CMD:b(playeridparams[])
{
    if(!
LoggedIn[playerid]) return 1;
    if(
isnull(params)) return SendClientMessage(playeridCOLOR_RED"USAGE : /b [Local OOC]");
    new 
string[128];
    
format(stringsizeof(string), "(( [%d] %s: %s ))"playeridNameRP(playerid), params);
    
SendLocalMessage(playeridCOLOR_GREYstring);
    return 
1;

Nothing happens when I'm using the command


Re: ZCMD error? - iHollyZinhO - 05.09.2018

Check if this variable is true when you use the command: LoggedIn[playerid].

PHP код:
CMD:b(playeridparams[]) 

    if(!
LoggedIn[playerid]) return SendClientMessage(playeridCOLOR_GREY"You're not logged in."); 
    if(
isnull(params)) return SendClientMessage(playeridCOLOR_RED"USAGE : /b [Local OOC]"); 
    new 
string[128]; 
    
format(stringsizeof(string), "(( [%d] %s: %s ))"playeridNameRP(playerid), params); 
    
SendLocalMessage(playeridCOLOR_GREYstring); 
    return 
1




Re: ZCMD error? - KinderClans - 05.09.2018

@Op: You should return 0 on your player logged check, not 1.