Wierd...
#1

Why does it don't show me back any message and don't take cash when I enter building?

Код:
if( Player[playerid][Money] >= Businesses[Player[playerid][InBusiness]][bEntrance])
{
	SetPlayerVirtualWorld( playerid, 65000+i);
	SetPlayerInterior( playerid, Businesses[i][bInteriorID]);
	Player[playerid][Money] -= Businesses[Player[playerid][InBusiness]][bEntrance];
	Businesses[Player[playerid][InBusiness]][bVault] += Businesses[Player[playerid][InBusiness]][bEntrance];
	SetPlayerPos( playerid, Businesses[i][bInteriorX], Businesses[i][bInteriorY], Businesses[i][bInteriorZ]);
	Player[playerid][InBusiness] = i;
}
else
{
	SendClientMessage( playerid, WHITE, "Not enought cash!" );
}
Reply
#2

Is it shows any warnings or errors?
pawn Код:
Player[playerid][Money] -= Businesses[Player[playerid][InBusiness]][bEntrance];
Why it isnt GivePlayerMoney or something like that?
Reply
#3

No it doesn't, it's not GivePlayerMoney, because it's server side money.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)