04.02.2015, 20:35
I recently came into a problem with ORM. It creates an instance with the ID 0. To sort out this problem I have been trying to find out which function it creates it in.
This is an example:
Now, my questions is, why do I get tag mismatch when using it as an integer? I've tried printing a few, and it prints just fine as an integer.
What kind of variable are the ORM ID's?
This is an example:
pawn Код:
forward SaveSomething(playerid);
public SaveSomething(playerid)
{
if(Something[playerid][ORM_ID] != 0) orm_update(Something[playerid][ORM_ID]);
else
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
printf("Error: Error saving Something for %s (%d).", PlayerName, playerid);
}
return 1;
}
What kind of variable are the ORM ID's?

