Hey Leuts ich habe ein Problem mit meine /ooc Chat ich habe den so:
ocmd:o(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] == 1) //Fehlerzeile
{
new string[128], text[256];
new spieler[MAX_PLAYER_NAME];
GetPlayerName(playerid, spieler, sizeof(spieler));
if(sscanf(params, "s", text))return SendClientMessage(playerid,"Benutze /o Text");
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{00FF5A}Probe Supporter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{55D300}Supporter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{00CDFF}Moderator{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 4)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{0087FF}Super Moderator{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 5)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{1E00FF}Administrator{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 6)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{FFC800}Server Manager{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 7)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{FFAA00}Community Leiter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 8)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{FF0000}Serverleiter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
{
if(PlayerInfo[playerid][pAdmin] == 1) //Fehlerzeile
{
new string[128], text[256];
new spieler[MAX_PLAYER_NAME];
GetPlayerName(playerid, spieler, sizeof(spieler));
if(sscanf(params, "s", text))return SendClientMessage(playerid,"Benutze /o Text");
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{00FF5A}Probe Supporter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{55D300}Supporter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{00CDFF}Moderator{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 4)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{0087FF}Super Moderator{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 5)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{1E00FF}Administrator{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 6)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{FFC800}Server Manager{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 7)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{FFAA00}Community Leiter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
else if(PlayerInfo[playerid][pAdmin] == 8)
{
SendClientMessageToAll(COLOR_WHITE,"================ [ {FF0000}Admin News{FAFAFA} ] ================");
format(string,sizeof(string),"{FF0000}Serverleiter{FAFAFA} %s: %s",spieler,text);
SendClientMessageToAll(COLOR_WHITE,string);
SendClientMessageToAll(COLOR_WHITE,"==============================================");
}
}
else { SendClientMessage(playerid, COLOR_RED, "Du bist nicht befugt!"); }
return 1;
}
else { SendClientMessage(playerid, COLOR_RED, "Du bist nicht befugt!"); }
return 1;
}
So aber nun besteht das Problem ihc habe diese Errors:
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : error 017: undefined symbol "PlayerInfo"
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : warning 215: expression has no effect
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : error 001: expected token: ";", but found "]"
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : error 029: invalid expression, assumed zero
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : fatal error 107: too many error messages on one line
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : warning 215: expression has no effect
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : error 001: expected token: ";", but found "]"
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : error 029: invalid expression, assumed zero
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\selfmad3.pwn(397) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
So und ich habe kp was da Falsch ist da es bei den Anderen ja auch geht.
Danke schonmal.
MFG
-----
Mario