why does this not work?
#1

if(AccInfo[playerid][pVip] > 0)
{
SetPlayerArmour(playerid, 50);
return 1;
}
Reply
#2

It works. Did you define "AccInfo" properly?
Where are you using this If statement?
Reply
#3

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
It works. Did you define "AccInfo" properly?
Where are you using this If statement?
At Onplayerspawn
and if i delete the Accinfo stuff, everyone gets the armor..
Reply
#4

Oh, try "50.0" as value. Armour is set as a float.
Reply
#5

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
Oh, try "50.0" as value. Armour is set as a float.
doesn't matter.
can you show me how you deffined the vip?
Reply
#6

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.
Reply
#7

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
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.
first of all I didn't asked any help in this topic
secondly I asked the topic opener I just answer your answer and back to the topic that's it...
Reply
#8

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.
Reply
#9

Fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)