[Help] Some errors on script. - 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: [Help] Some errors on script. (
/showthread.php?tid=403269)
[Help] Some errors on script. -
Almogn - 29.12.2012
Hello, thanks for the people whos gonna help.
i just came back to script,and i wanna know what problem i have here.
Pictures :
1. The Errors'
2. The line :
------------
if you dont see :
The error's :
Quote:
pwn(30831) : error 017: undefined symbol "BizzInfo"
pwn(30831) : error 001: expected token: ";", but found "]"
pwn(30831) : error 029: invalid expression, assumed zero
pwn(30831) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
|
4 Errors.
The lines :
Quote:
CMD etprice(playerid, params[])
{
#pragma unused params
new string[256];
new businessname[256];
if(BizzInfo[GetPVarInt(playerid, "InBizz")][bType] == 1)
{
new price1 = BizzInfo[GetPVarInt(playerid, "InBizz")][bProductPrice1];
new price2 = BizzInfo[GetPVarInt(playerid, "InBizz")][bProductPrice2];
new price3 = BizzInfo[GetPVarInt(playerid, "InBizz")][bProductPrice3];
new price4 = BizzInfo[GetPVarInt(playerid, "InBizz")][bProductPrice4];
|
--Please answer,and help me!
--Have a nice new year ((Also happy))
Re: [Help] Some errors on script. -
Vinninho - 29.12.2012
Код:
if(!BizzInfo[GetPVarInt(playerid, "InBizz")][bType] == 1);
Not sure, but U can try it
Re: [Help] Some errors on script. -
Almogn - 29.12.2012
Nope,still four errors
Re: [Help] Some errors on script. -
Alternative112 - 29.12.2012
Try this:
Код:
new bizz = GetPVarInt(playerid, "InBizz");
if(BizzInfo[bizz][bType] == 1) {
I'm curious as to how this would play out.