SA-MP Forums Archive
UsePlayerPedAnims() Error !! - 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: UsePlayerPedAnims() Error !! (/showthread.php?tid=338917)



UsePlayerPedAnims() Error !! - MichaelProPlayer - 01.05.2012

I am use this gamemode https://sampforum.blast.hk/showthread.php?tid=271929

I add UsePlayerPedAnims(); In gamemodeinit But it dosen't works -.- "

Help me !


Re: UsePlayerPedAnims() Error !! - ViniBorn - 01.05.2012

Show your server.log


Re: UsePlayerPedAnims() Error !! - Ballu Miaa - 01.05.2012

Add this on the first line of OnGameModeInIt Callback and try again.

pawn Код:
UsePlayerPedAnims();



Re: UsePlayerPedAnims() Error !! - Mark™ - 01.05.2012

Post your code where the error pops up.

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Add this on the first line of OnGameModeInIt Callback and try again.

pawn Код:
UsePlayerPedAnims();
Doesn't matter if you post at the end of the callback or at the start, just should be inside that callback.


Re: UsePlayerPedAnims() Error !! - MichaelProPlayer - 01.05.2012

None of you helped...

Cause I fixed it on my own

Correct answer was :

Place the script under OnPlayerSpawn


Re: UsePlayerPedAnims() Error !! - Mark™ - 01.05.2012

Quote:
Originally Posted by MichaelProPlayer
Посмотреть сообщение
None of you helped...

Cause I fixed it on my own

Correct answer was :

Place the script under OnPlayerSpawn
Nope, it's not correct, it's to be placed inside OnGameModeInit, you must have made a mistake before otherwise it would give any kind of error.