12.08.2011, 02:58
I get Warning(s007): Exception 0xC0000005 at 0x4CA013 when I spawn at a specific place, I don't crash, but it's rather annoying. Help?
OnPlayerSpawn
public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); TogglePlayerClock(playerid,0); if(GetPlayerSkin(playerid) == 105) SetPlayerColor(playerid, 0x00FF00FF); if(GetPlayerSkin(playerid) == 106) SetPlayerColor(playerid, 0x00FF00FF); if(GetPlayerSkin(playerid) == 107) SetPlayerColor(playerid, 0x00FF00FF); if(GetPlayerSkin(playerid) == 102) SetPlayerColor(playerid, 0x4B00B0AA); if(GetPlayerSkin(playerid) == 103) SetPlayerColor(playerid, 0x4B00B0AA); if(GetPlayerSkin(playerid) == 104) SetPlayerColor(playerid, 0x4B00B0AA); if(GetPlayerSkin(playerid) == 280) SetPlayerColor(playerid, 0x0000BBAA); if(GetPlayerSkin(playerid) == 281) SetPlayerColor(playerid, 0x0000BBAA); if(GetPlayerSkin(playerid) == 164) SetPlayerColor(playerid, 0x0000BBAA); if(GetPlayerSkin(playerid) == 186) SetPlayerColor(playerid, 0x0000BBAA); return 1; }
What pos?
Код:
public OnPlayerSpawn(playerid) { SetPlayerInterior(playerid,0); TogglePlayerClock(playerid,0); if(GetPlayerSkin(playerid) == 105) SetPlayerColor(playerid, 0x00FF00FF); if(GetPlayerSkin(playerid) == 106) SetPlayerColor(playerid, 0x00FF00FF); if(GetPlayerSkin(playerid) == 107) SetPlayerColor(playerid, 0x00FF00FF); if(GetPlayerSkin(playerid) == 102) SetPlayerColor(playerid, 0x4B00B0AA); if(GetPlayerSkin(playerid) == 103) SetPlayerColor(playerid, 0x4B00B0AA); if(GetPlayerSkin(playerid) == 104) SetPlayerColor(playerid, 0x4B00B0AA); if(GetPlayerSkin(playerid) == 280) SetPlayerColor(playerid, 0x0000BBAA); if(GetPlayerSkin(playerid) == 281) SetPlayerColor(playerid, 0x0000BBAA); if(GetPlayerSkin(playerid) == 164) SetPlayerColor(playerid, 0x0000BBAA); if(GetPlayerSkin(playerid) == 186) SetPlayerColor(playerid, 0x0000BBAA); return 1; } |