In meinem OnPlayerSpawn habe ich nen Error. Leider kann ich den Fehler nciht finden
ZitatError:C:\Users\Dennis\Desktop\Server\gamemodes\saartdenninho.pwn(1408) : error 054: unmatched closing brace ("}")
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new pname[MAX_PLAYER_NAME], path[128],accFormat[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(path, sizeof(path), "/%s.ini", pname);
format(accFormat,sizeof accFormat,"%s.datei",pname);
{
SetPlayerSkin(playerid, dini_Int(accFormat,"skin"));
}
if(!dini_Exists(path))
{
dini_Create(path);
}
SetPlayerPos(playerid, dini_Float(path, "x"), dini_Float(path, "y"), dini_Float(path, "z"));
if(Spieler[playerid][team] == 8) // biker
{
GivePlayerWeapon(playerid,5,1);
}
if(Spieler[playerid][team] == 7) //hitman
{
GivePlayerWeapon(playerid, 4, 1);
}
if(Spieler[playerid][team] == 6) //team polizei
{
}
if(Spieler[playerid][team] == 5) //team el banditos
{
GivePlayerWeapon(playerid,8,1);
}
if(Spieler[playerid][team] == 4)//team Army
{ if(Spieler[playerid][rang] == 10)
{
}
}
else{}
if(Spieler[playerid][team] == 3) //team FaF
{
GivePlayerWeapon(playerid, 15, 1);
}
if(Spieler[playerid][team] == 2) //ms13
{
GivePlayerWeapon(playerid,5,1);
}
if(Spieler[playerid][team] == 1) // SEK
{
}
if(Spieler[playerid][team] == 0) //Penner
{
SendClientMessage(playerid, Gelb, "Du bist ein Penner.");
SendClientMessage(playerid, Gelb, "Such dir eine Fraktion.");
}
clock();
SetTimerEx("Harn",60000,1,"d",playerid);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, CPText);
TextDrawShowForPlayer(i, HARNDRANG);
TextDrawShowForPlayer(i, HARNDRANGANZEIGE[i]);
}
}
SetTimerEx("updateharn",1000,1,"d",playerid);
return 1;
}
} //Zeile 1408