Help with a line - 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)
+--- Thread: Help with a line (
/showthread.php?tid=321298)
Help with a line -
Dark Crow - 26.02.2012
well i have this line and i am still a beginer but i want to know i am trying to make some /enter commands but i don't know does this
Код:
PlayerInfo[playerid][pLocal] = 240;
needs to be changed always and how can i change it so to difer it from a shop if that place is a gun shop? how can i know how to change it?
Re: Help with a line -
Shabi RoxX - 26.02.2012
You Wanna Change pLocal VAR ??
In your Command...
pawn Код:
PlayerInfo[playerid][pLocal] = X; // Put anything in place of X
Re: Help with a line -
Dark Crow - 26.02.2012
so if i put
Код:
PlayerInfo[playerid][pLocal] = 400
for a gunshop it will work i can put whatever i want?
Re: Help with a line -
Shabi RoxX - 26.02.2012
Quote:
Originally Posted by Dark Crow
so if i put
Код:
PlayerInfo[playerid][pLocal] = 400
for a gunshop it will work i can put whatever i want?
|
Yes you can SET PlayerInfo[playerid][pLocal] Value to any Variable....
But I don't Know actually what This Variable do in your script.
Re: Help with a line -
Dark Crow - 26.02.2012
well i need to make shops, gunshops and some other shops and i needed to make it a player could only buy something on those locations using that but i didn't know how to find it now when i know that is what i want it to be i know how to make it
Re: Help with a line -
Dark Crow - 26.02.2012
just to know can i give the same variable to 2 Int?? or it needs all to be diffrent?