Player stuck after death
#1

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!
Reply
#2

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?
Reply
#3

show me OnPlayerSpawn
Reply
#4

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
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.
Reply
#5

Are there any warnings which you are getting?
Reply
#6

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..
Reply
#7

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.
Reply
#8

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...
Reply
#9

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)