ZCMD error?
#1

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
Reply
#2

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

Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)