18.09.2012, 20:55
this is the code that made pawno crash, but I don't get why.
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:
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?
Код:
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 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 );
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?