02.12.2013, 12:06
Hey there!
If anyone has expressed this kind of error before and knows how get their way around of it, please share the knowledge. Have never tangled with checkpoints before so I'm not quite sure what I am doing.
What i am trying to do though - easily explained is adding a name to the checkpoint so i could use it later in the OnPlayerEnterDynamicCP callback - case, for example.
The line in bold is returning 'error 022: must be lvalue (non-constant)'
Thanks in advance!
If anyone has expressed this kind of error before and knows how get their way around of it, please share the knowledge. Have never tangled with checkpoints before so I'm not quite sure what I am doing.
What i am trying to do though - easily explained is adding a name to the checkpoint so i could use it later in the OnPlayerEnterDynamicCP callback - case, for example.
Код:
for(new h = 0; h < sizeof(HouseInfo); h++) { CHECKPOINT_HOUSE = CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 2, -1, -1, -1, 2); }
Thanks in advance!