19.07.2012, 20:15
Sou iniciante em Pawn e estou prescisando de ajuda.
Decidi fazer do 0 do que baixar e sair editando, li sobre algumas funзхes e tudo,
mais equi estб dando um erro diferente e que nгo consegui arrumar,
й o seguinte da pra entrar no server e td mais quando morre,
as cores embolam e fica aparecendo "stay within the world boundaries"
procurei aqui no forum e nгo achei algo relacionado a isso.
Alguem pode ajudar?
acho que o erro deve ser ai pq sу ocorre na hora do spawn apуs a morte do player.
Decidi fazer do 0 do que baixar e sair editando, li sobre algumas funзхes e tudo,
mais equi estб dando um erro diferente e que nгo consegui arrumar,
й o seguinte da pra entrar no server e td mais quando morre,
as cores embolam e fica aparecendo "stay within the world boundaries"
procurei aqui no forum e nгo achei algo relacionado a isso.
Alguem pode ajudar?
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gHospitalInfo[playerid][MorreuHospital] == 1)
{
SetPlayerPos(playerid, 275.2320,1859.6525,9.8133);
SetPlayerInterior(playerid, 0);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Voce precisa ~r~descansar ~w~agora...", 15000, 3);
SetTimerEx("TempoHospital", 15000, false, "i", playerid);
gHospitalInfo[playerid][FoiHospital] += 1;
return 1;
}
TextDrawShowForPlayer(playerid, UPRelogio[playerid]);
return 1;
}