Error "function "PublicLog" is not implemented"
#4

He just said to do it like this:
PHP Code:
    if(strcmp(cmd"/ooc"true) == || strcmp(cmd"/o"true) == 0//
    
{
        if(
IsPlayerConnected(playerid))
        {
            if(
gPlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridCOLOR_GREY"** You havent logged in yet !");
                return 
1;
            }
            if ((
noooc) && PlayerInfo[playerid][pAdmin] < 1)
            {
                
SendClientMessage(playeridCOLOR_GRAD2"** The OOC channel has been disabled by an Admin !");
                return 
1;
            }
            if(
PlayerInfo[playerid][pMuted] == 1)
            {
                
SendClientMessage(playeridTEAM_CYAN_COLOR"You cannot speak, you have been silenced");
                return 
1;
            }
            new 
length strlen(cmdtext);
            while ((
idx length) && (cmdtext[idx] <= ' '))
            {
                
idx++;
            }
            new 
offset idx;
            new 
result[128];
            while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
            {
                
result[idx offset] = cmdtext[idx];
                
idx++;
            }
            
result[idx offset] = EOS;
            if(!
strlen(result))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USAGE: (/o)oc [OOC chat]");
                return 
1;
            }
            if(
PlayerInfo[playerid][pAdmin] == 0)
            {
                
format(stringsizeof(string), "(( %s ))", (result));
            }
            else
            {
                
format(stringsizeof(string), "[[ %s ]]", (result));
            }
               
SendPlayerMessageToAll(playeridstring);
            new 
year,month,day;
            
getdate(yearmonthday);
            new 
hourminutesecond;
            
gettime(hour,minute,second);
            
format(stringsizeof(string), "(%d/%d/%d)[%d:%d:%d] %s (OOC): (%s)",day,month,year,hour,minute,secondsendernameresult);
            
PublicLog(string);
        }
        return 
1;
    } 
There is no more problem right ?
Reply


Messages In This Thread
Error "function "PublicLog" is not implemented" - by ZdupX - 29.08.2013, 06:03
Re: Error "function "PublicLog" is not implemented" - by Misiur - 29.08.2013, 08:33
Re: Error "function "PublicLog" is not implemented" - by ZdupX - 29.08.2013, 08:47
Re: Error "function "PublicLog" is not implemented" - by Varkoll_ - 29.08.2013, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)