Hallo,
Ich habe seit eben so ein komisches Problem, dass bei OnPlayerSpawn nur die hälfte lädt.
Die Uhr oben rechts startet zum Beispiel, der Spielzeit Timer auch, aber wenn man eine PVar-Abfrage macht spawnt man immer da, wo ich addplayerclass hinverlegt habe.
AddPlayerClass(79, -2461.4958,776.9338,35.1719,328.0269, 0, 0, 0, 0, 0, 0); //Noobspawn
Es liegt nicht an ID 0 , so viel steht fest.
Hier die Codes für den Spawn, bzw. für den Skin:
if(GetPVarInt(playerid,"Fraktion")!=0)
{
if(GetPVarInt(playerid,"Fraktion")==1)
{
if(GetPVarInt(playerid,"Rang")==1)return SetPlayerSkin(playerid,281);
if(GetPVarInt(playerid,"Rang")==2)return SetPlayerSkin(playerid,280);
if(GetPVarInt(playerid,"Rang")==3)return SetPlayerSkin(playerid,267);
if(GetPVarInt(playerid,"Rang")==4)return SetPlayerSkin(playerid,266);
if(GetPVarInt(playerid,"Rang")==5)return SetPlayerSkin(playerid,265);
}
if(GetPVarInt(playerid,"Fraktion")==2)
{
if(GetPVarInt(playerid,"Rang")==1)return SetPlayerSkin(playerid,285);
if(GetPVarInt(playerid,"Rang")==2)return SetPlayerSkin(playerid,286);
if(GetPVarInt(playerid,"Rang")==3)return SetPlayerSkin(playerid,166);
if(GetPVarInt(playerid,"Rang")==4)return SetPlayerSkin(playerid,164);
if(GetPVarInt(playerid,"Rang")==5)return SetPlayerSkin(playerid,163);
}
if(GetPVarInt(playerid,"Fraktion")==3)
{
if(GetPVarInt(playerid,"Rang")==1)return SetPlayerSkin(playerid,193);
if(GetPVarInt(playerid,"Rang")==2)return SetPlayerSkin(playerid,211);
if(GetPVarInt(playerid,"Rang")==3)return SetPlayerSkin(playerid,215);
if(GetPVarInt(playerid,"Rang")==4)return SetPlayerSkin(playerid,219);
if(GetPVarInt(playerid,"Rang")==5)return SetPlayerSkin(playerid,295);
}
if(GetPVarInt(playerid,"Fraktion")==4)
{
if(GetPVarInt(playerid,"Rang")==1)return SetPlayerSkin(playerid,186);
if(GetPVarInt(playerid,"Rang")==2)return SetPlayerSkin(playerid,169);
if(GetPVarInt(playerid,"Rang")==3)return SetPlayerSkin(playerid,227);
if(GetPVarInt(playerid,"Rang")==4)return SetPlayerSkin(playerid,228);
if(GetPVarInt(playerid,"Rang")==5)return SetPlayerSkin(playerid,294);
}
if(GetPVarInt(playerid,"Fraktion")==5)
{
if(GetPVarInt(playerid,"Rang")==1)return SetPlayerSkin(playerid,173);
if(GetPVarInt(playerid,"Rang")==2)return SetPlayerSkin(playerid,174);
if(GetPVarInt(playerid,"Rang")==3)return SetPlayerSkin(playerid,175);
if(GetPVarInt(playerid,"Rang")==4)return SetPlayerSkin(playerid,114);
if(GetPVarInt(playerid,"Rang")==5)return SetPlayerSkin(playerid,115);
}
}
if(GetPVarInt(playerid,"Fraktion")==1)
{
}
if(GetPVarInt(playerid,"Fraktion")==2)
{
SetPlayerPosEx(playerid,-2453.6455,503.8590,30.0800,271.3103,0);
}
if(GetPVarInt(playerid,"Fraktion")==3)
{
SetPlayerPosEx(playerid,-1946.2191,564.8855,35.2181,3.6896,0);
}
if(GetPVarInt(playerid,"Fraktion")==4)
{
SetPlayerPosEx(playerid,-2521.5583,-621.5850,132.7362,358.2374,0);
}
if(GetPVarInt(playerid,"Fraktion")==5)
{
SetPlayerPosEx(playerid,-2166.7095,-218.7349,35.3203,294.3409,0);
}
Beide Dinge werden nicht gesetzt, gibt es da einen bekannten Bug oder so?
Ich weiß nicht was ich jetzt neu und anders gemacht habe, seit gestern.
Bitte schnelle Hilfe!