how to fix errors??
#1

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

show the code for a start
Reply
#3

481:
Код:
new Bar:LoadTruckBar[MAX_PLAYERS] = INVALID_BAR_ID;
8013:
Код:
DestroyProgressBar(LoadTruckBar[playerid]);
Reply
#4

pawn Код:
new Bar:LoadTruckBar[MAX_PLAYERS] = {INVALID_BAR_ID, ...};
Reply
#5

same errors
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)