Stock/Callback how do i make this possible?
#5

Quote:
Originally Posted by Micko123
Посмотреть сообщение
PHP код:
GetLevelTitle(level

    static const 
gAdminTitles[][] = { 
        
"None"// 0 
        
"Black-Listed"// 1 
        
"Junior Admin"// 2 
        
"General Admin",// 3 
        
"Senior Admin",
        
"Head Admin",
        
"Server Manager" 
    
}; 
    return 
gAdminTitles[level]; 

Thanks now i got this error when i tried to call the function on my /a cmd

C:\Users\user\Desktop\lewl Roleplay\gamemodes\lewl.pwn(36082) : error 017: undefined symbol "level"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Line:
Quote:

format(szMessage, sizeof(szMessage), "* %s %s: %s", GetLevelTitle(level), GetPlayerNameEx(playerid), params);

Full Code
PHP код:
CMD:admin(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 1) {
        if(!
isnull(params))
        {
            new 
szMessage[128];
            
format(szMessagesizeof(szMessage), "* %s %s: %s"GetLevelTitle(level), GetPlayerNameEx(playerid), params);
        }
        else 
SendClientMessage(playeridCOLOR_WHITE"USAGE: (/a)dmin [admin chat]");
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)