Errors by compiling! - 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: Errors by compiling! (
/showthread.php?tid=279614)
Errors by compiling! -
jad621 - 28.08.2011
Look i try to compile an script and i've got the next errors on one line here the line and the errors:
Код:
C:\Users\wim\Desktop\SARP\gamemodes\sarp.pwn(3281) : error 029: invalid expression, assumed zero
C:\Users\wim\Desktop\SARP\gamemodes\sarp.pwn(3281) : warning 215: expression has no effect
C:\Users\wim\Desktop\SARP\gamemodes\sarp.pwn(3281) : error 001: expected token: ";", but found "]"
C:\Users\wim\Desktop\SARP\gamemodes\sarp.pwn(3281) : error 029: invalid expression, assumed zero
C:\Users\wim\Desktop\SARP\gamemodes\sarp.pwn(3281) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Код:
building[i] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, BInfo[i][bExteriorX], BInfo[i][bExteriorY], BInfo[i][bExteriorZ]+0.75,40.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
Re: Errors by compiling! -
Bakr - 28.08.2011
Please show where you define the building and BInfo arrays.
Re: Errors by compiling! - array13 - 28.08.2011
what you want to do?
Re: Errors by compiling! -
jad621 - 28.08.2011
Код:
enum bInfo
{
bName[64],
bOwned,
bOwner[MAX_PLAYER_NAME],
Float:bOutsideX,
Float:bOutsideY,
Float:bOutsideZ,
Float:bOutsideAng,
bOutsideWorld,
bOutsideInt,
bOutsidePickup,
Float:bInsideX,
Float:bInsideY,
Float:bInsideZ,
Float:bInsideAng,
bInsideInt,
bInsidePickup,
bEntryFee,
bValue,
bTill,
bLocked,
bType,
bProducts
}
new BizInfo[MAX_BIZ][bInfo];
//===============================[A Info]=======================================
enum aInfo
{
bName[255],
bPickupID,
bLocked,
bVIP,
bInteriorID,
bExteriorID,
bVirWorld,
Float: bInteriorX,
Float: bInteriorY,
Float: bInteriorZ,
Float: bExteriorX,
Float: bExteriorY,
Float: bExteriorZ,
};
new BInfo[MAX_BUILDINGS][aInfo];
#define buildings
#define MAX_BUILDINGS 1000
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Re: Errors by compiling! -
Ronaldo_raul™ - 28.08.2011
show line 3281