SA-MP Forums Archive
[HELP] Business - 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: [HELP] Business (/showthread.php?tid=195702)



[HELP] Business - [Aka]Dragonu - 03.12.2010

what's wrong ?
pawn Код:
if(strcmp(cmd, "/jump", true) == 0 || strcmp(cmd, "/dive", true) == 0)
    {
        if(PlayerToPoint(10, playerid, 1.7178,32.8729,1199.5938) && GetPlayerVirtualWorld(playerid) == 12)
        {
            SetPlayerPos(playerid, BusinessInfo[12][bEntrancex], BusinessInfo[i][bEntrancey], BusinessInfo[12][bEntrancez]+1000.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            GivePlayerWeapon(playerid, 46, 1); // Para
            GameTextForPlayer(playerid, "~g~Go! Go! Go!", 5000, 4);
        }
pawn Код:
#define MAX_BUSINESSES 12
Error :
pawn Код:
D:\Games\GTA San Andreas\server\gamemodes\slrpg.pwn(9037) : error 032: array index out of bounds (variable "BusinessInfo")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



Re: [HELP] Business - scottyishere - 03.12.2010

pawn Код:
#define MAX_BUSINESSES 13



Re: [HELP] Business - [Aka]Dragonu - 03.12.2010

Thank you . Lol i think i need to get some rest !