Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Nemanja23 poslato Septembar 24, 2017, 16:33:58 POSLE PODNE

Naslov: Oko spawna
Poruka od: Nemanja23 poslato Septembar 24, 2017, 16:33:58 POSLE PODNE
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://
Naslov: Odg: Oko spawna
Poruka od: Stifler ツ poslato Septembar 24, 2017, 17:02:42 POSLE PODNE
freezuj igraca na 5 sekundi kad se spawna i postavi mu koordinate od pravog spawna,tako sam ja rijesio
Naslov: Odg: Oko spawna
Poruka od: Nemanja23 poslato Septembar 24, 2017, 17:13:53 POSLE PODNE
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.
Naslov: Odg: Oko spawna
Poruka od: Stifler ツ poslato Septembar 24, 2017, 17:26:29 POSLE PODNE
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
Naslov: Odg: Oko spawna
Poruka od: Nemanja23 poslato Septembar 24, 2017, 18:01:28 POSLE PODNE
Nece,sve sam ubacio ovo sto si mi poslao i compille sam nemam errora,startujem server nece..
Opet me spawna u selu