19.12.2016, 00:54
I am confused, maybe the people here can help me
I've done debugging, code I've loaded correctly
but when I enter the code, my character did not spawn correctly
make my server takes a lot of ram
I've done debugging, code I've loaded correctly
but when I enter the code, my character did not spawn correctly
make my server takes a lot of ram
Код:
enum mapinfos
{
mapid = 1,
NamaMap[64],
HumanX[24],
HumanY[24],
HumanZ[24],
ZombieX[24],
ZombieY[24],
ZombieZ[24]
};
new MapInfo[mapinfos];
public OnPlayerSpawn(playerid)
{
if(GetPlayerTeam(playerid) == ZOMBIE)
{
SetPlayerInterior(playerid, MapInfo[Interior]);
SetPlayerPos(playerid, MapInfo[HumanX], MapInfo[HumanY], MapInfo[HumanZ]); // tag mismatch 194
}
else
{
SetPlayerInterior(playerid, MapInfo[Interior]);
SetPlayerPos(playerid, MapInfo[ZombieX], MapInfo[ZombieY], MapInfo[ZombieZ]); // tag mismatch 194
}
return 1;
}



its working,