07.07.2011, 06:20
For a while i have been trying to fix this code. so can sombody please help me? okay so here is the errors.
Okay And Here is The Codes.
Error Code Problem Code:
Nvm Fixedd
Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin1.pwn(21) : error 009: invalid array size (negative, zero or out of bounds) C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin1.pwn(108) : error 010: invalid function or declaration
Код:
#include <a_samp> #include <dini> #include <Zcmd> #include <dudb> #pragma unused ret_memcpy #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define FILTERSCRIPT #define GREY 0xAFAFAFAA #define GREEN 0x33AA33AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_RED 0xE60000FF #define WHITE 0xFFFFFFAA #define LIGHTBLUE 0x33CCFFAA #define ORANGE 0xFF9900AA #define gPlayerInfo #if defined FILTERSCRIPT new PlayerInfo[MAX_PLAYERS][gPlayerInfo];//This is line 21
Код:
public OnPlayerDisconnect(playerid, reason) { new name[MAX_PLAYER_NAME], file[256]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), SERVER_USER_FILE, name); if(gPlayerLogged[playerid] == 1) { dini_IntSet(file, "Score", PlayerInfo[playerid][pScore]); dini_IntSet(file, "Money", PlayerInfo[playerid][pCash]); dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][pAdminLevel]); } gPlayerLogged[playerid] = 0; } return 1;