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

Quote:
Originally Posted by Micko123
Посмотреть сообщение
try by doing this
PHP код:
CMD:admin(playeridparams[]) 

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

PHP код:
C:\Users\user\Desktop\Ssa Roleplay\gamemodes\asm.pwn(36083) : error 035argument type mismatch (argument 1
Quote:

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

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)