Oko spawna

Započeo Nemanja23, Septembar 24, 2017, 16:33:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:///
Detaljan opis problema:Kada se /kill ili me neko ubije ili se ubijem spawna me u selu (na farmi) i u crash detectu mi izbacuje ovaj debug
[14:37:13] [debug]  Accessing element at index 65535 past array upper bound 99
[14:37:13] [debug] AMX backtrace:
[14:37:13] [debug] #0 003d6698 in ?? (0x0000ffff) from GL-RP.amx
[14:37:13] [debug] #1 00268d70 in public OnPlayerDeath (0x00000000, 0x0000ffff, 0x000000ff) from GL-RP.amx
[14:37:18] [debug] Run time error 4: "Array index out of bounds"
[14:37:18] [debug]  Accessing element at index 65535 past array upper bound 99
[14:37:18] [debug] AMX backtrace:
[14:37:18] [debug] #0 003d6698 in ?? (0x0000ffff) from GL-RP.amx
[14:37:18] [debug] #1 00268d70 in public OnPlayerDeath (0x00000000, 0x0000ffff, 0x000000ff) from GL-RP.amx
[14:37:26] [debug] Run time error 4: "Array index out of bounds"
[14:37:26] [debug]  Accessing element at index 65535 past array upper bound 99
[14:37:26] [debug] AMX backtrace:
[14:37:26] [debug] #0 003d6698 in ?? (0x0000ffff) from GL-RP.amx
[14:37:26] [debug] #1 00268d70 in public OnPlayerDeath (0x00000000, 0x0000ffff, 0x000000ff) from GL-RP.amx
[14:37:45] [debug] Run time error 4: "Array index out of bounds"
[14:37:45] [debug]  Accessing element at index 65535 past array upper bound 99
[14:37:45] [debug] AMX backtrace:
[14:37:45] [debug] #0 003d6698 in ?? (0x0000ffff) from GL-RP.amx
[14:37:45] [debug] #1 00268d70 in public OnPlayerDeath (0x00000000, 0x0000ffff, 0x000000ff) from GL-RP.amx
Slika://

freezuj igraca na 5 sekundi kad se spawna i postavi mu koordinate od pravog spawna,tako sam ja rijesio

Mozes da mi stavis ovde da prekopiras to sto si uradio,da turim kod mene posto ne znam kako da stavim to da me freeze.

prvo [pawn]new SpawnicTimer;[/pawn] na vrhu skripte
pod onplayerspawn stavis jedan timer [pawn]SpawnicTimer = SetTimer("Spawna", 50, 1);[/pawn]

i onda gdje su ti ostali publici stavis

[pawn]forward Spawna(playerid);
public Spawna(playerid)
{
   SetPlayerPos(playerid, 399.58392, -1531.13086, 32.24300);
   KillTimer(SpawnicTimer);
   return 1;
}[/pawn]

Naravno stavis svoje koordinate za spawn

Nece,sve sam ubacio ovo sto si mi poslao i compille sam nemam errora,startujem server nece..
Opet me spawna u selu