[HELP] Problem with OnPlayerStateChange Fuction. (PAWNO CRASH)
#1

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

Posting your OnPlayerStateChange code would help us in order to help you.
Reply
#3

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

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

hmm.. kk thx anyway
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)