Posts: 627
Threads: 93
Joined: Mar 2009
Reputation:
0
if(AccInfo[playerid][pVip] > 0)
{
SetPlayerArmour(playerid, 50);
return 1;
}
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
It works. Did you define "AccInfo" properly?
Where are you using this If statement?
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
Oh, try "50.0" as value. Armour is set as a float.
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
I.. didn't define VIP? It's your script. You tell me how you defined VIP and how you store the value in that variable.
Posts: 1,057
Threads: 90
Joined: May 2009
Reputation:
0
Then ask a moderator to remove or close this topic, you're clearly asking for help: "why does this not work?". If it did work, you wouldn't post here, which means you wouldn't need help of someone to help you fix this problem.
If it's up to me this code is working perfectly.