19.01.2012, 18:44
Код:
enum wnt { WeaponNames[ 256 ] } new weaponnames[MAX_TEAMS][wnt]= { { "- Primary~n- Deagle(100)~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"}, { "- Primary~n- Secondary~n- Thirdly"} }; // Somewhere in the script playerclass[playerid]=1; new string[256]; format(string,sizeof(string),"%s",weaponnames[playerclass[playerid]][wnt]); TextDrawSetString(OPRQwnp[playerid],string); TextDrawShowForPlayer(playerid,OPRQwnp[playerid]);
Код:
C:\Users\Tadas\Desktop\Gang Wars\gamemodes\SSSGW.pwn(809) : error 032: array index out of bounds (variable "weaponnames")