09.01.2013, 22:35
(
Последний раз редактировалось Kaaajmak; 10.01.2013 в 13:41.
)
EDIT: READ THE PROBLEM WITH THE CODE BELLOW.
Now, I have scripted these before, but it had one problem..
It had an array defined and it wrote into that array, like: WeaponData[playerid][slot] = weaponid;
The problem is. It.. Sometimes 'forgets' to write to it. In the debug window I keep seeing this:
"Stored weaponid 22 in slot 2 for player 0" (example)
"Checking Player 0's 2nd slot for weaponid 0"
"Player kicked."
Why is this happening?
This happens:
- When spawning legitimately(sometimes),
- When being in a car,
- When flying through the air.
Any SA-MP related bugs, or am I missing something out(Certain carids causing issues and such)?
Looking forward to your response.
Now, I have scripted these before, but it had one problem..
It had an array defined and it wrote into that array, like: WeaponData[playerid][slot] = weaponid;
The problem is. It.. Sometimes 'forgets' to write to it. In the debug window I keep seeing this:
"Stored weaponid 22 in slot 2 for player 0" (example)
"Checking Player 0's 2nd slot for weaponid 0"
"Player kicked."
Why is this happening?
This happens:
- When spawning legitimately(sometimes),
- When being in a car,
- When flying through the air.
Any SA-MP related bugs, or am I missing something out(Certain carids causing issues and such)?
Looking forward to your response.