29.08.2010, 19:46
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!" ); }