SA-MP Forums Archive
i Need Help Fast! Please This Is Urgent! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i Need Help Fast! Please This Is Urgent! (/showthread.php?tid=267078)



i Need Help Fast! Please This Is Urgent! - HayZatic - 07.07.2011

For a while i have been trying to fix this code. so can sombody please help me? okay so here is the errors.

Код:
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
Okay And Here is The Codes.

Код:
#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
Error Code Problem Code:

Код:
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;
Nvm Fixedd


Re: i Need Help Fast! Please This Is Urgent! - Shadoww5 - 07.07.2011

http://forum.sa-mp.com/showthread.ph...67#post1280567