I need your help ! the logs didn't work !
#9

What is this ? three string for name ? of playerid ?
pawn Код:
new name[MAX_PLAYER_NAME];
    new PlayerName[24];
    new Name[MAX_PLAYER_NAME];
Try this :

pawn Код:
new string[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);//getting playername that uses command
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(GetAdminLevel(playerid) < 2 && !IsPlayerAdmin(playerid) && GetAdminSpay(playerid) < 2 && GetTempAdminLevel(playerid) < 2)
    {
        format(string,sizeof(string),"[LoG] - %s [#%d]: %s",name,playerid,cmdtext);
        SendClientMessage(i,0x999999ff,string);
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)