26.02.2013, 14:01
Ta dando crash por causa da funзгo MapAndreas_FindZ_For2DCoord oque pode ser??
pawn Код:
public OnPlayerUpdate(playerid) {
if(IsPlayerNPC(playerid)) {
new Float: p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
new Float:z;
MapAndreas_FindZ_For2DCoord(p[0],p[1], z);
if(p[2] > z) {
SetPlayerFindPosZ(playerid,p[0],p[1]);
}
}
return 1;
}
stock SetPlayerFindPosZ(playerid, Float:x, Float:y) {
new Float:z;
MapAndreas_FindZ_For2DCoord(x, y, z);
SetPlayerPos(playerid, x, y, z);
}