SA-MP Forums Archive
Getting a few weird bugs with my new roleplay death system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Getting a few weird bugs with my new roleplay death system (/showthread.php?tid=529341)



Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 01.08.2014

Close this, no help for 20 days.


Re: Getting a few weird bugs with my new roleplay death system - Jefff - 01.08.2014

Spawned 2 times because first spawn is when you set TogglePlayerSpectating(playerid, false); its the same as SpawnPlayer(playerid); if player was spectacing, just remove SetTimerEx("SpawnPlayerEx", 250, false, "i", playerid);


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 02.08.2014

Quote:
Originally Posted by Jefff
View Post
Spawned 2 times because first spawn is when you set TogglePlayerSpectating(playerid, false); its the same as SpawnPlayer(playerid); if player was spectacing, just remove SetTimerEx("SpawnPlayerEx", 250, false, "i", playerid);
That would cause me to not spawn at all


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 03.08.2014

Bump


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 04.08.2014

Bump


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 05.08.2014

Bump


Re: Getting a few weird bugs with my new roleplay death system - Dignity - 05.08.2014

To start off, please try adding this:

pawn Code:
public OnPlayerRequestClass(playerid, classid) return SpawnPlayer(playerid);
public OnPlayerRequestSpawn(playerid) return SpawnPlayer(playerid);
And if some animations do not show, you'll have to preload the animation library.

pawn Code:
PreloadAnimLib(playerid, "index");

stock PreloadAnimLib(playerid, animlib[]) return ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
Try the above and see if it fixes the first two bugs or any more. If not, please say so here and I'll look in to it more.


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 05.08.2014

Quote:
Originally Posted by Mionee
View Post
pawn Code:
public OnPlayerRequestClass(playerid, classid) return SpawnPlayer(playerid);
public OnPlayerRequestSpawn(playerid) return SpawnPlayer(playerid);
This worked for skipping through the class selection, cheers. If there is another way to fix it so the class selection does not appear at all (since it's not supposed to) that would be awesome aswell!

Quote:
Originally Posted by Mionee
View Post
And if some animations do not show, you'll have to preload the animation library.
pawn Code:
PreloadAnimLib(playerid, "index");

stock PreloadAnimLib(playerid, animlib[]) return ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);
This is what I tried doing at line 136 in the script, nevertheless I tried the above and this did not work either :~(


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 07.08.2014

Bump


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 08.08.2014

Bump


Re: Getting a few weird bugs with my new roleplay death system - AzaMx - 08.08.2014

You should stop bumping your thread.


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 13.08.2014

Quote:
Originally Posted by AzaMx
View Post
You should stop bumping your thread.
Why?


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 18.08.2014

Bump


Re: Getting a few weird bugs with my new roleplay death system - [NWA]Hannes - 23.08.2014

Close this please, nobody seems to know what the problem is.