Stocking Problem ?
#1

pawn Код:
stock CMDMessageToAdmins(playerid,command[])
{
    if(ServerInfo[AdminCmdMsg] == 0) return 1;
    new string[128]; new AdminCMD[500]; GetPlayerName(playerid,AdminCMD,sizeof(AdminCMD));
    format(string,sizeof(string),"(Admin) '%s' (Level: %d) | Command: %s", AdminCMD, PlayerInfo[AdminCMD][Level], command);
    return MessageToAdmins(yellow,string);
}
Guys please see what wrong with my code

please help +REP +REP +REP
Reply
#2

Would you mind to be more specific? Doesn't it work correct? What kind of problem did you find?

First of all, change AdminCMD's size from 500 to 24.

You didn't post MessageToAdmins too in case there's something wrong in it.

Other than those above, it seems fine.
Reply
#3

ok Leeme try
Reply
#4

can you just fixed for me because i'm kind of stupid of ScriptinG :\
Reply
#5

pawn Код:
stock CMDMessageToAdmins(playerid,command[])
{
    if(ServerInfo[AdminCmdMsg] == 0) return 1;
    new string[144];
    new AdminName[MAX_PLAYER_NAME + 1];
    GetPlayerName(playerid,AdminName,MAX_PLAYER_NAME);
    format(string,sizeof(string),"(Admin) '%s' (Level: %d) | Command: %s", AdminName, PlayerInfo[playerid][Level], command);
    return MessageToAdmins(yellow,string);
}
Reply
#6

Ty Jefff
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)