Global variables confusion
#6

Quote:
Originally Posted by OdgFox
Посмотреть сообщение
Using then, if another player also agrees to sell the house to another person, would not the value change at all?

That is, at the same time X sells to Y and X2 sells to Y2
no there's not a swap, the one player is standing without house but if u want a swap, than just make it like this:
PHP код:
// when offers
SetPVarInt(X,"House",House[Y]);
SetPVarInt(Y,"House",House[X]);
// when accepts or idk.
HouseID[X] = GetPVarInt(X,"House");
HouseID[Y] = GetPVarInt(Y,"House"); 
I dont understand what u want try to explain better.
Reply


Messages In This Thread
Global variables confusion - by OdgFox - 03.02.2018, 06:01
Re: Global variables confusion - by jasperschellekens - 03.02.2018, 10:47
Re: Global variables confusion - by OdgFox - 03.02.2018, 14:56
Re: Global variables confusion - by Mugala - 03.02.2018, 16:35
Re: Global variables confusion - by OdgFox - 03.02.2018, 17:05
Re: Global variables confusion - by Mugala - 03.02.2018, 17:16
Re: Global variables confusion - by OdgFox - 03.02.2018, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)