Player stuck after death [+REP for help] -
dark_ghost - 08.09.2014
Hey there. Well, I've got a problem.. When a player dies, after respawning in the spawn coords I did choose, you respawn with the normal anim but you can't move or open the chat. You're stuck. The only way to get out is to press ctrl+alt+del and close it or just restart the PC. Does anyone know what is doing that problem?
There is the OnPlayerDeath line:
http://pastebin.com/985yt90u
OnPlayerSpawn:
http://pastebin.com/vxTLHTvP
And there is the lines of coding where the human, zombies, infecteds and faction players do spawn:
http://pastebin.com/5361YBxk (It is located above the OnPlayerDeath line.)
Thanks!
Re: Player stuck after death -
Ghazal - 08.09.2014
Actually, I am not sure but,
Maybe the coords which you have used contain many items, so the player stuck since his pc specs aren't so good?
Re: Player stuck after death -
Eth - 08.09.2014
show me OnPlayerSpawn
Re: Player stuck after death -
dark_ghost - 08.09.2014
Quote:
Originally Posted by Maro06
Actually, I am not sure but,
Maybe the coords which you have used contain many items, so the player stuck since his pc specs aren't so good?
|
Quote:
Originally Posted by Eth
show me OnPlayerSpawn ![Smiley](images/smilies/smile.png)
|
Maro, I don't think thats the cause. It has a lot of objects, due its a construction site. I've tested it with a Intel Core i7-3770K @ 3.50GHz and 16 GB RAM. The game doesn't crash or freeze. You can't just move your player or write, but you see the other players playing and talking on the chat and all that stuff. It's like when someone freezes you with the admin commands.
Eth, there is the OnPLayerSpawn:
http://pastebin.com/vxTLHTvP
There's 3 spawns, one for the Human, one for the zombie and one for the infected players. There's also a disabled one for faction members. It's a zombie apocalypse roleplay gamemode.
Re: Player stuck after death -
Ghazal - 08.09.2014
Are there any warnings which you are getting?
Re: Player stuck after death -
dark_ghost - 08.09.2014
Quote:
Originally Posted by Maro06
Are there any warnings which you are getting?
|
"C:\Users\-GordoPorco\Desktop\fdm 0.3z\gamemodes\fdmZARP.pwn(7776) : warning 217: loose indentation
C:\Users\-GordoPorco\Desktop\fdm 0.3z\gamemodes\fdmZARP.pwn(18991) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings."
Btw, I did have a bug earlier that the players were spawning at the same places where they die. After 5-6 deaths it freezes the player. Now, it freezes with 1 death since I added the maps with CreateDynamicObject codes..
Re: Player stuck after death -
Pawnify - 08.09.2014
return 1; at the end of OnPlayerDeath
I think that's your problem.
Also add #pragma unused ret_memcpy, to the top of your script.
Re: Player stuck after death -
dark_ghost - 08.09.2014
Quote:
Originally Posted by Pawnify
return 1; at the end of OnPlayerDeath
I think that's your problem.
Also add #pragma unused ret_memcpy, to the top of your script.
|
It did remove the warning, but, it still freezes you when you die...
Re: Player stuck after death -
dark_ghost - 08.09.2014
Quote:
Originally Posted by Maro06
Are there any warnings which you are getting?
|
Quote:
Originally Posted by Pawnify
return 1; at the end of OnPlayerDeath
I think that's your problem.
Also add #pragma unused ret_memcpy, to the top of your script.
|
Well, the player spawn is not under those lines. They are above "OnPlayerDeath".
There are the codes:
http://pastebin.com/5361YBxk
Sorry for this mistake!