SetPVarInt And GetPVarInt??
#1

Heey all,

Mademan made a code for me for buying weapons at weapon dealers(players).
But when some buys a weapon at a player other players on server who are weapon dealer gets money to.
How can i fix this?
Code fromshow weapon shop:
Код:
SetPVarInt(playerid, "arm1", i);if(IsPlayerConnected(i)==1)
Code for buy weapon(onplayertext):
Код:
new dealerid = GetPVarInt(playerid, "arm1");
GivePlayerMoney(dealerid, 10000);
		  		DeletePVar(playerid, "arm1");
		  		GivePlayerWeapon(playerid,4,1);
		  		GivePlayerMoney(playerid,-10000);
How can i fix this?

Thanks Admigo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)