how to fix errors?? - 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: how to fix errors?? (
/showthread.php?tid=490545)
how to fix errors?? -
AhmedMohamed - 27.01.2014
How to fix these errors ??
Код:
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\roleplay.pwn(481) : error 008: must be a constant expression; assumed zero
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\roleplay.pwn(8013) : error 012: invalid function call, not a valid address
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\roleplay.pwn(8013) : warning 215: expression has no effect
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\roleplay.pwn(8013) : error 001: expected token: ";", but found ")"
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\roleplay.pwn(8013) : error 029: invalid expression, assumed zero
C:\Users\Ahmed Hassan\Desktop\Server\gamemodes\roleplay.pwn(8013) : fatal error 107: too many error messages on one line
Re: how to fix errors?? -
Don_Cage - 27.01.2014
show the code for a start
Re: how to fix errors?? -
AhmedMohamed - 27.01.2014
481:
Код:
new Bar:LoadTruckBar[MAX_PLAYERS] = INVALID_BAR_ID;
8013:
Код:
DestroyProgressBar(LoadTruckBar[playerid]);
Re: how to fix errors?? -
Konstantinos - 27.01.2014
pawn Код:
new Bar:LoadTruckBar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
Re: how to fix errors?? -
AhmedMohamed - 27.01.2014
same errors
Re: how to fix errors?? -
Konstantinos - 27.01.2014
You're doing something wrong.
pawn Код:
new Bar:LoadTruckBar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
and
pawn Код:
DestroyProgressBar(LoadTruckBar[playerid]);
both work fine and compile fine as well.