English Solved Why is 1 not recognized as true in ArmA?

15/8/22
3
0
100
I am trying to work on a cop saving position but for whatever reason ArmA doesn't know that 1 = true. yet when I look at the civi code it doesn't have if ... isEquals 1

4:22:51 Error if: Type Number, expected Bool
4:22:51 File mpmissions\__CUR_MP.Tanoa\core\fn_initCop.sqf..., line 29

I double checked the database and the response from the DB and it is correct. Do I need to define that 1 = true and 0 = false somewhere for west side?

Thanks for your time and help!

Posté par scareddonut via discord.
 
15/8/22
3
0
100
Thank you 🙂

I've managed to get ahead with the project but I am stuck on one last issue.

When pressing sync in game or when waiting 5 minutes for the server to sync automatically the cop_position and cop_alive change to 0.

I think I've narrowed it down to fn_updateRequest.sqf.

For whatever reason the vars are not sent over to the server from client.


I changed the code to that and on west side I added the two new fields

.../MySQL/fn_updateRequest.sqf
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

and on client side
/core/session/fn_updateRequest.sqf
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

So when a player disconnects the data is sent over correctly and it does update cop_alive and cop_position but when its manually saved/automatically saved by the server it changes to 0 and [].

I was wondering if you could point me in the right direction as I am lost here.

Thank you for you time and help! ❤️

Posté par @scareddonut via discord.
 
Activité
Pour l'instant, il n'y a personne ici