[HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) (
/showthread.php?tid=114909)
[HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) -
DjSterios - 21.12.2009
Hello everyone, i would like to ask some help. Well.. when i compile my script(the weird thing is, the first time i compiled it, but now i can't compile it again) my pawno crashes. and i found out, that on "OnPlayerStateChange" Function, when i remove the last } pawno doesn't crash, but of course script doesn't work because i have removed the last } symbol. i use a godfather edit. I didn't change ANYTHING on OnPlayerStateChange function. But i really can't understand why it crashes. Please help me to fix it. Thanks.
Re: [HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) -
Correlli - 21.12.2009
Posting your OnPlayerStateChange code would help us in order to help you.
Re: [HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) -
DjSterios - 21.12.2009
Well.. its very big lol.. but anyway, the point is, i didn't change anything on OnPlayerStateChange Function... so i don't think that will help... something else crashed it or sth..
Re: [HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) -
Correlli - 21.12.2009
Well, something IS changed if the compiler is crashing now. Check your brackets again, and not only the brackets at OnPlayerStateChange, but also the ones around OnPlayerStateChange-callback.
Re: [HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) -
DjSterios - 21.12.2009
hmm.. kk thx anyway
Re: [HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH) -
E-Rage - 30.01.2010
help.. it crashed in me too !
Код:
OnPlayerStateChange
if(gang[playerid] == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(newcar == 1)
{
if(newstate == PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid,COLOR,"You are not allowed to drive this car");
RemovePlayerFromVehicle(newcar);
}
}
}
does this mean anything?