#define ACMDS 24
enum ACMDPROPERTIES{
acmdACCESS,
acmdCMD [16],
acmdHELP [32]
}
new adminCMD[ACMDS][ACMDPROPERTIES] = {
{ 1, "#" , "[TEXT]" },
{ 3, "/answer" , "[Q-ID] [MSG]" },
{ 3, "/questions" , " " },
{ 5, "/asay" , "[MSG]" },
{ 7, "/ainfo" , "[P-ID]" },
{ 78, "/goto" , "[P-ID]" },
{ 99, "/tmute" , "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
{ 105, "/war" , "[P-ID] [REASON]" },
{ 120, "/get" , "[P-ID]" },
{ 140, "/kick" , "[P-ID] [REASON]" },
{ 154, "/tfreeze" , "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
{ 178, "/tban" , "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
{ 230, "/banlist" , " " },
{ 240, "/unban" , "[P-NAME] [0,1,2=MUTE,FREEZE,BAN]" },
{ 350, "/setaa" , "[P-ID] [ACCESS]" },
{ 350, "/setalvl" , "[P-ID] [LEVEL] [ACCESS | 50, 100, 150, 200, 250, 350]" },
{ 999, "/jobvehicles" , "[JOBID] [fful, savepos, respawn, repair, eoff, eon, unlock, lock, delete]" },
{ 999, "/arcon" , "[gmx, exit, list, savedb]" },
{ 999, "/listmission" , " " },
{ 999, "/listcp" , " " },
{ 999, "/listvehicle" , " " },
{ 999, "/listjob" , " " },
{ 999, "/listrank" , " " },
{ 999, "/listhouse" , " " }
};
C:\Users\RJ\Desktop\WinGTAsa\gamemodes\rn.pwn(193) : warning 228: length of initialler exceeds size of the enum field
C:\Users\RJ\Desktop\WinGTAsa\gamemodes\rn.pwn(193) : error 018: initialization data exceeds declared size
{ "/tmute" ,99, "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
PHP Code:
edit. it's connected with the length - but why, when I defined the length above? done. was too short - 72 at least, srry... can't count i guess? |
new adminCMD[ACMDS][ACMDPROPERTIES][/*MAX_STRING_SIZE*/] = {
{ 1, "#" , "[TEXT]" },
{ 3, "/answer" , "[Q-ID] [MSG]" },
{ 3, "/questions" , " " },
{ 5, "/asay" , "[MSG]" },
{ 7, "/ainfo" , "[P-ID]" },
{ 78, "/goto" , "[P-ID]" },
{ 99, "/tmute" , "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
{ 105, "/war" , "[P-ID] [REASON]" },
{ 120, "/get" , "[P-ID]" },
{ 140, "/kick" , "[P-ID] [REASON]" },
{ 154, "/tfreeze" , "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
{ 178, "/tban" , "[P-ID] [REASON] [MONTHS] [DAYS] [HOURS] [SECONDS]" },
{ 230, "/banlist" , " " },
{ 240, "/unban" , "[P-NAME] [0,1,2=MUTE,FREEZE,BAN]" },
{ 350, "/setaa" , "[P-ID] [ACCESS]" },
{ 350, "/setalvl" , "[P-ID] [LEVEL] [ACCESS | 50, 100, 150, 200, 250, 350]" },
{ 999, "/jobvehicles" , "[JOBID] [fful, savepos, respawn, repair, eoff, eon, unlock, lock, delete]" },
{ 999, "/arcon" , "[gmx, exit, list, savedb]" },
{ 999, "/listmission" , " " },
{ 999, "/listcp" , " " },
{ 999, "/listvehicle" , " " },
{ 999, "/listjob" , " " },
{ 999, "/listrank" , " " },
{ 999, "/listhouse" , " " }
};
You're trying to make a tridimensional array, but only declared two parameters.
|
No, he is not. A 2D array consists of pairs {{1, 2}, {3, 4}}
|
new 1DArray[32] = { "Insert here a 32 characters string" };
new 1DArray1[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
new playerName[MAX_PLAYERS][MAX_PLAYER_NAME];
new badVehicleNames[][MAX_VEHICLE_NAME] = {
{"Clover"},
{"Tampa"},
{"Huntley"},
{"Rancher"}
};
new randomStuff[][][] = {
{"Pencil", "Book", "Screwdriver", "Rubber"},
{"Tire", "Wheel", "Pedal", "Mirror"},
{"Hand", "Ear", "Hair", "Retangle"}
};
new someNeatShit[][][] = {
{4, "The ruler is ok", float:774.4},
{5, "nice try mr. johnson", float:25.9},
{11, "Tea is just grass sweat", float:44741.47}
};
1D Arrays:
pawn Code:
pawn Code:
pawn Code:
|