18.03.2009, 21:57
Hi everyone.
I'm creating my first game server script, and I'm not sure about something..
Can I do this?
These are the errors I get
Can anyone help me? What should I do to access the X position of the "mod" array inside that other array, which has an enum.
I'm creating my first game server script, and I'm not sure about something..
Can I do this?
Код:
enum _pVehicle{ ownerName[256], vehicleId, modelId, Float:posX, Float:posY, Float:posZ, Float:rotation, bool:locked, color1, color2, mod[10] }; new p_Vehicle[MAX_PLAYERS][_pVehicle]; (...) p_Vehicle[0][mod[1]] = 3;
Код:
D:\San Andreas Multiplayer\gamemodes\script.pwn(438) : error 028: invalid subscript (not an array or too many subscripts): "mod" D:\San Andreas Multiplayer\gamemodes\script.pwn(438) : warning 215: expression has no effect D:\San Andreas Multiplayer\gamemodes\script.pwn(438) : error 001: expected token: ";", but found "]" D:\San Andreas Multiplayer\gamemodes\script.pwn(438) : error 029: invalid expression, assumed zero D:\San Andreas Multiplayer\gamemodes\script.pwn(438) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.