why does this not work? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: why does this not work? (
/showthread.php?tid=258742)
why does this not work? -
geerdinho8 - 01.06.2011
if(AccInfo[playerid][pVip] > 0)
{
SetPlayerArmour(playerid, 50);
return 1;
}
Re: why does this not work? -
Biesmen - 01.06.2011
It works. Did you define "AccInfo" properly?
Where are you using this If statement?
Re: why does this not work? -
geerdinho8 - 01.06.2011
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..
Re: why does this not work? -
Biesmen - 01.06.2011
Oh, try "50.0" as value. Armour is set as a float.
Re: why does this not work? -
vladi866 - 01.06.2011
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?
Re: why does this not work? -
Biesmen - 01.06.2011
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.
Re: why does this not work? -
vladi866 - 01.06.2011
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...
Re: why does this not work? -
Biesmen - 01.06.2011
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.
Re: why does this not work? -
geerdinho8 - 01.06.2011
Fixed.