Error string
#6

PHP код:
if(strcmp(cmd"/chatadmin"true) == || strcmp(cmd"/ca"true) == 0

    new 
string[128];
    if(
IsPlayerConnected(playerid)){ 
        
GetPlayerName(playeridsendernamesizeof(sendername)); 
        new 
length strlen(cmdtext); 
        while ((
idx length) && (cmdtext[idx] <= ' ')) 
        { 
            
idx++; 
        } 
        new 
offset idx
        new 
result[64]; 
        while ((
idx length) && ((idx offset) < (sizeof(result) - 1))) 
        { 
            
result[idx offset] = cmdtext[idx]; 
            
idx++; 
        } 
        
result[idx offset] = EOS
        if(!
strlen(result)) 
        { 
            
SendClientMessage(playerid0xBFC0C200"USE: /chatadmin [Texto]"); 
            return 
true
        } 
        if(
Admin[playerid] >= 1
        { 
            new 
string[128]; 
            
format(stringsizeof(string), "*%d Admin %s: %s"PlayerInfo[playerid][pAdmin], PlayerName(playerid), result); 
            
ABroadCast(0x00C8FFAAstring1); 
        } 
        
format(stringsizeof(string), "[%d/%d/%d] [%d:%d:%d] *%d Admin %s: %s"v[2], v[1], v[0], v[3], v[4], v[5] , PlayerInfo[playerid][pAdmin], sendernameresult); 
        
AChatLog(string); 
    } 
    return 
true

No topo do GM
PHP код:
new PlayerInfo[MAX_PLAYERS][pInfo]; 
Reply


Messages In This Thread
Error string - by Ever_SH - 06.01.2013, 09:22
Re: Error string - by Delete_ - 06.01.2013, 09:24
Re: Error string - by Will_Lda - 06.01.2013, 09:29
Re: Error string - by Ever_SH - 06.01.2013, 09:30
Re: Error string - by Will_Lda - 06.01.2013, 09:41
Re: Error string - by Mteck - 06.01.2013, 09:48
Re: Error string - by Ever_SH - 06.01.2013, 10:14
Re: Error string - by Mteck - 06.01.2013, 10:23
Re: Error string - by tonisantolia - 06.01.2013, 20:55
Re: Error string - by HeyHoLetsGo - 06.01.2013, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)