Pawno crashes at compile -
Roel - 18.09.2012
this is the code that made pawno crash, but I don't get why.
Код:
SetPlayerAttachedObject(playerid, i+4, p[ADD_WEAR_ID][i], p[ADD_WEAR_BONE][i],p[VAR_ACC_ADD_WEAR_OFFX][i],p[VAR_ACC_ADD_WEAR_OFFY][i],p[VAR_ACC_ADD_WEAR_OFFZ][i],p[VAR_ACC_ADD_WEAR_ROTX][i],p[VAR_ACC_ADD_WEAR_ROTY][i],p[VAR_ACC_ADD_WEAR_ROTZ][i],p[VAR_ACC_ADD_WEAR_SCAX][i],p[VAR_ACC_ADD_WEAR_SCAY][i],p[VAR_ACC_ADD_WEAR_SCAZ][i]);
When I compile pawno will freeze and I have to close it with tasksmanager.
When I remove the last coords from the SetPlayerAttachedObject it will compile success.
Like this:
Код:
SetPlayerAttachedObject(playerid, i+4, p[ADD_WEAR_ID][i], p[ADD_WEAR_BONE][i],p[VAR_ACC_ADD_WEAR_OFFX][i],p[VAR_ACC_ADD_WEAR_OFFY][i],p[VAR_ACC_ADD_WEAR_OFFZ][i],p[VAR_ACC_ADD_WEAR_ROTX][i],p[VAR_ACC_ADD_WEAR_ROTY][i],p[VAR_ACC_ADD_WEAR_ROTZ][i],p[VAR_ACC_ADD_WEAR_SCAX][i],p[VAR_ACC_ADD_WEAR_SCAY][i],0.0 );
And I'm 100 procent sure that the variables names are correct, so if you anwser dont tell me to check the names if they exist, because if there was a mistake in the names then pawno won't crash, but will give me an error.
So might is the function to long or something? even if this is possible I don't think so...
So what can be the problem?
Re: Pawno crashes at compile -
Roel - 18.09.2012
Sloved, the answer is, The lenght of the line is just too long for a function or something, I don't get it, but also pawno don't get it. But it seems when I change the name to SCAZ instead of VAR_ACC_ADD_WEAR_SCAZ , it works. So pawno just fails haha.
Re: Pawno crashes at compile -
Red_Dragon. - 18.09.2012
I think Roel is right try to make it shorter
Re: Pawno crashes at compile -
mamorunl - 18.09.2012
Quote:
Originally Posted by Red_Dragon.
I think Roel is right try to make it shorter
|
Psst, Roel was the Topic starter as well

hehe. Also, don't repost what is already said. It is counted as spamming and too much of it can get you banned.