Posts: 131
Threads: 29
Joined: Mar 2014
Quote:
Originally Posted by BlackBomb
pawn Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '!' && P_Data[playerid][VIP] >= 1) { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"[DONATOR] %s: %s",string,text[1]); MessageToPlayerVIP(COLOR_GREEN,string); return 0; } //============================================================================== // Administration Chat //============================================================================== if(text[0] == '#' && P_Data[playerid][pAdmin] >= 1) { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"[ADMIN]: %s: %s",string,text[1]); MessageToAdmins(COLOR_GREY,string); #if ADM_CHAT_LOG == true #endif return 0; }
stock MessageToPlayerVIP(color,msg[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { if(P_Data[i][VIP] >= 1) { SendClientMessage(i, color, msg); } } } return 1; }
stock MessageToAdmins(color,msg[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) == 1) { if(P_Data[i][VIP] >= 1) { SendClientMessage(i, color, msg); } } } return 1; }
|
Код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3134) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3144) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3216) : error 010: invalid function or declaration
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\gamemodes\xD.pwn(3231) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.