10.04.2013, 16:27
Quote:
You are missing an argument, which is the maximal size of the string.
pawn Код:
|
pawn Код:
new reasons[MAX_PLAYERS][3][120];
=> 411 INI_String("Reason1",reasons[playerid][0][120],120);
INI_String("Reason2",reasons[playerid][1][120],120);
INI_String("Reason3",reasons[playerid][2][120],120);
pawn Код:
C:\Users\HP\Desktop\Gta sa\Resident Evil [Main]\gamemodes\Zm.pwn(441) : error 032: array index out of bounds (variable "reasons")
C:\Users\HP\Desktop\Gta sa\Resident Evil [Main]\gamemodes\Zm.pwn(441) : warning 215: expression has no effect
C:\Users\HP\Desktop\Gta sa\Resident Evil [Main]\gamemodes\Zm.pwn(441) : error 001: expected token: ";", but found "]"
C:\Users\HP\Desktop\Gta sa\Resident Evil [Main]\gamemodes\Zm.pwn(441) : error 029: invalid expression, assumed zero
C:\Users\HP\Desktop\Gta sa\Resident Evil [Main]\gamemodes\Zm.pwn(441) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.