07.06.2012, 19:48
So basically i have this script:
and this enums:
I want my admin enum to be checked,and if its set to 1,in the user's dini file,then the command works,if its not then it will not work and it will give a message.
I must mention that my system is dini.(Yes it sucks but for starters like me its gold).
I just need the syntax for checking a value,in a dini user file.
Thanks for helping me
Code:
if(strcmp(cmd, "/givemoney", true) == 0) { new tmp[30]; tmp = strtok(cmdtext, idx); new otherplayer = strval(tmp); if(IsPlayerConnected(otherplayer)) { GivePlayerMoney(otherplayer, 50000); } return 1; }
Code:
enum pInfo { Float:x, Float:y, Float:z, Float:a, Wep1, Wep2, Wep3, Wep4, Wep5, Wep6, Wep7, Wep8, Ammo1, Ammo2, Ammo3, Ammo4, Ammo5, Ammo6, Ammo7, Ammo8, Hour, Min, Password[MAX_PASS_SIZE+1], Logged, FalseLogins, Admin, <------This one }
I must mention that my system is dini.(Yes it sucks but for starters like me its gold).
I just need the syntax for checking a value,in a dini user file.
Thanks for helping me
![Smiley](images/smilies/smile.png)