Scripting Errors (easy but hard) - 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: Scripting Errors (easy but hard) (
/showthread.php?tid=607926)
Scripting Errors (easy but hard) -
D3vin - 25.05.2016
(41032) : error 029: invalid expression, assumed zero
(41032) : warning 215: expression has no effect
(41032) : error 001: expected token: ";", but found ")"
(41032) : error 029: invalid expression, assumed zero
(41032) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Sell drugs to an NPC and it gives you money, but i get errors when compiling
Код:
(41029) // cash check
(41030) price = amount * weedprice;
(41031) PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+price;
(41032) GivePlayerMoney(playerid, +price);
(41033) PlayerInfo[playerid][pDrugs] -= amount;
Idk where is the problem; i cant find it lol? anything wrong on the script sentence?
Re: Scripting Errors (easy but hard) -
zDivine - 25.05.2016
Line 41032: GivePlayerMoney(playerid, price);
Re: Scripting Errors (easy but hard) -
D3vin - 25.05.2016
Thanks, i feel dumb lol
it works
Re: Scripting Errors (easy but hard) -
zDivine - 25.05.2016
Quote:
Originally Posted by D3vin
Thanks, i feel dumb lol
it works
|
No problem, it happens bro! Glad I could help.