public OnPlayerText(playerid, text[]){ if(pInfo[playerid][Admin] >= 1){new str[128];format(str, 128, \"[Admin]%s: %s\", GetName(playerid), text);SendClientMessageToAll(COLOR_ORANGE, string);return 0;}if(pInfo[playerid][VIP] >= 1){ new str[130];format(str, 130, \"[VIP]%s: %s\", GetName(playerid), text); SendClientMessageToAll(COLOR_YELLOW, str);return 0;} } return 1; }
public OnPlayerText(playerid, text[]){ if(pInfo[playerid][Admin] >= 1) { new str[128]; format(str, 128, \"[Admin]%s: %s\", GetName(playerid), text); SendClientMessageToAll(COLOR_ORANGE, string); } if(pInfo[playerid][VIP] >= 1) { new str[130]; format(str, 130, \"[VIP]%s: %s\", GetName(playerid), text); SendClientMessageToAll(COLOR_YELLOW, str); } } return 0; }
new str[128];if(pInfo[playerid][pAdmin] > 0){format(str, sizeof(str), \"[Admin]%s: %s\", Name(playerid), text);}else if(pInfo[playerid][pVIP] > 0){format(str, sizeof(str), \"[VIP]%s: %s\", Name(playerid), text);}SendClientMessageToAll(SZIN, str);return 0;
]C:\\Users\\Sarkozi\\AppData\\Local\\Temp\\Rar$DI00.932\\jadmin.pwn(2470) : error 012: invalid function call, not a valid addressC:\\Users\\Sarkozi\\AppData\\Local\\Temp\\Rar$DI00.932\\NSTAdmin.pwn(2470) : warning 215: expression has no effectC:\\Users\\Sarkozi\\AppData\\Local\\Temp\\Rar$DI00.932\\NSTAdmin.pwn(2470) : error 001: expected token: \";\", but found \")\"C:\\Users\\Sarkozi\\AppData\\Local\\Temp\\Rar$DI00.932\\NSTAdmin.pwn(2470) : error 029: invalid expression, assumed zeroC:\\Users\\Sarkozi\\AppData\\Local\\Temp\\Rar$DI00.932\\NSTAdmin.pwn(2470) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
format(str, sizeof(str), \"[ADMIN]%s: %s\", Name(playerid), text);
public OnPlayerText(playerid, text[]){ if(IsPlayerAdmin(playerid)) { new name[MAX_PLAYER_NAME+1]; new str[128]; GetPlayerName(playerid, name, sizeof(name)); format(str, 128, \"[Admin]%s: %s\", name , text); SendClientMessageToAll(COLOR_ORANGE, str); // string } return 0;}