Business problem
#1

hi again! do anyone know how to script when sobebody enter in a bizz it's owner recive the money setted as fee. This is m code
Quote:

GivePlayerMoney(playerid,-BizzInfo[i][bEntranceCost]);
GivePlayerMoney(BizzInfo[i][bOwner], + BizzInfo[i][bEntranceCost]);
format(string, sizeof(string),"LARP/Users/%s.ini",BizzInfo[i][bOwner]);
new totalcash = dini_Int(string,"Money") + BizzInfo[i][bEntranceCost];
dini_IntSet(string,"Money",totalcash);

but i get this :
Quote:

****(51897) : warning 215: expression has no effect
****(51897) : error 001: expected token: ";", but found ")"
****(51897) : error 029: invalid expression, assumed zero
****(51897) : fatal error 107: too many error messages on one line

Thank You in advance
Reply
#2

There is a + sign in your second line which does not belong there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)