Business problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Business problem (
/showthread.php?tid=334965)
Business problem -
Angel.Why - 16.04.2012
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
Re: Business problem -
mamorunl - 16.04.2012
There is a + sign in your second line which does not belong there