Scripting Errors (easy but hard)
#1

(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?
Reply
#2

Line 41032: GivePlayerMoney(playerid, price);
Reply
#3

Thanks, i feel dumb lol
it works
Reply
#4

Quote:
Originally Posted by D3vin
Посмотреть сообщение
Thanks, i feel dumb lol
it works
No problem, it happens bro! Glad I could help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)