C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(868) : error 017: undefined symbol "Blau"
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(870) : error 017: undefined symbol "Blau"
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(871) : error 017: undefined symbol "Blau"
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(874) : error 033: array must be indexed (variable "buffer")
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(875) : error 033: array must be indexed (variable "buffer")
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(876) : error 033: array must be indexed (variable "buffer")
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(877) : error 033: array must be indexed (variable "buffer")
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(878) : error 033: array must be indexed (variable "buffer")
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(886) : error 010: invalid function or declaration
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(887) : error 010: invalid function or declaration
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(889) : error 010: invalid function or declaration
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(890) : error 010: invalid function or declaration
C:\Users\Justin\Desktop\Server 2013\gamemodes\Pascal.pwn(892) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Errors.
new PlayerInvite[MAX_PLAYERS char];
new LeaderID[MAX_PLAYERS char];
ocmd:invite(playerid,params[])
{
if(!IstSpielerLeader(playerid,1) || !IstSpielerLeader(playerid,1) || !IstSpielerLeader(playerid,3) || !IstSpielerLeader(playerid,4) || !IstSpielerLeader(playerid,5))return SendClientMessage(playerid,Blau,"Du bist nicht befugt diesen Befehl zu benutzen.");
new pID,string[128],buffer[30];
if(sscanf(params,"u",pID))return SendClientMessage(playerid,Blau,"Benutze /invite [playerid]");
if(!IsPlayerConnected(pID))return SendClientMessage(playerid,Blau,"Dieser Spieler ist nicht Online.");
switch(GetPVarInt(playerid,"Fraktion")){
case 0: buffer = "Zivi";
case 1: buffer = frakname;
case 2: buffer = frakname1;
case 3: buffer = frakname2;
case 4: buffer = frakname3;
case 5: buffer = frakname4;
}
format(string,sizeof(string),"%s hat dich in die Fraktion %s eingeladen willst du sie annehmen?",SpielerName(playerid),buffer);
ShowPlayerDialog(pID,DIALOG_JaNein,DIALOG_STYLE_MSGBOX,"Fraktion Annehmen/Ablehnen",string,"Ja","Nein");
PlayerInvite{pID} = GetPVarInt(playerid,"Fraktion");
LeaderID{pID} = playerid;
return 1;
}
else if(DIALOG_JaNein == ID eintragen){
if(!response){
PlayerInvite{playerid} = 0;
if(GetPVarInt(LeaderID{pID},"Fraktion") == PlayerInvite{playerid})SendClientMessage(LeaderID{pID},-1,"Die Einladung wurde abgelehnt");
return SendClientMessage(playerid,-1,"Du hast die Einladung abgelehnt");
}
if(GetPVarInt(LeaderID{pID},"Fraktion") == PlayerInvite{playerid})SendClientMessage(LeaderID{pID},-1,"Die Einladung wurde abgelehnt");
SetPVarInt(playerid,"Fraktion",PlayerInvite{playerid});
PlayerInvite{playerid} = 0;
SendClientMessage(playerid,-1,"Du hast die Einladung angenommen");
}
}
Nochmal das invite system