[POMOC]BizInfo

Započeo Markinjoâ„¢, Maj 31, 2012, 23:01:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:CLRP
Detaljan opis problema:Izbacuje mi dva erora koja nikako ne mogu da resim !
C:\Users\Trifunovic\Desktop\Europe\gamemodes\esrp.pwn(42924) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Trifunovic\Desktop\Europe\gamemodes\esrp.pwn(42944) : error 032: array index out of bounds (variable "BizzInfo")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Dio skripte:
Evo ta komanda :

if (strcmp(cmd, "/buygun", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    if(GetPlayerMoney(playerid) < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Nemate dovoljno novca kod sebe !");
    return 1;
}
if(PlayerToPoint(50.0,playerid,296.919982,-108.071998,1001.515625))
{
if(BizzInfo[1][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid,200, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
SendClientMessage(playerid, COLOR_GREEN, "Otvorili ste meni za kupovinu oruzja");
}
else if(PlayerToPoint(50.0,playerid,316.524993,-167.706985,999.593750))
{
if(BizzInfo[0][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid,201, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
SendClientMessage(playerid, COLOR_GREEN, "Otvorili ste meni za kupovinu oruzja");
}
else if(PlayerToPoint(50.0,playerid,294.5529,-37.6681,1001.5156))
{
if(BizzInfo[17][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid,208, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
SendClientMessage(playerid, COLOR_GREEN, "Otvorili ste meni za kupovinu oruzja");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):



Citat: ...Nikola... poslato Jun 01, 2012, 15:43:40 POSLE PODNE
El si uredjivao u komandi nesto ili sta si uradio pa ti se pojavili ti erori?
Nista nisam dirao



Daj mi liniju 42944 i par linija iznad i ispod
Izvinjavam se na svim glupostima i ako sam nekome napisao nesto lose, neko drugi je koristio moj profil!
__________________________________________
https://bk.gta.world - GTA World Balkan - RAGEMP

Citat: ''KopriVa' poslato Jun 03, 2012, 12:07:06 POSLE PODNE
Daj mi liniju 42944 i par linija iznad i ispod
evo tebi brate cela komanda


if (strcmp(cmd, "/buygun", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
    if(GetPlayerMoney(playerid) < 1)
{
    SendClientMessage(playerid, COLOR_GREY, "   Nemate dovoljno novca kod sebe !");
    return 1;
}
if(PlayerToPoint(50.0,playerid,296.919982,-108.071998,1001.515625))
{
if(BizzInfo[1][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid,200, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
SendClientMessage(playerid, COLOR_GREEN, "Otvorili ste meni za kupovinu oruzja");
}
else if(PlayerToPoint(50.0,playerid,316.524993,-167.706985,999.593750))
{
if(BizzInfo[0][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid,201, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
SendClientMessage(playerid, COLOR_GREEN, "Otvorili ste meni za kupovinu oruzja");
}
else if(PlayerToPoint(50.0,playerid,294.5529,-37.6681,1001.5156))
{
if(BizzInfo[17][bProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
return 1;
}
ShowPlayerDialog(playerid,208, DIALOG_STYLE_LIST, "Kupovina oruzja:", "Pancir (1000$) \nNoz (10$)\nBokser (5$)\nBeizbolska Palica (8$)\nKatana (12$)\n9mm Pistolj (500$)\nTihi 9mm (700$)\nDesert Eagle (900$)\nShotgun (1000$)\nSawn-off Shotgun (1200$)\nCombat Shotgun (1400$)\nMicro SMG (1000$)\nSMG (1500$)\nAK47 (2000$)\nM4 (2100$)\nTec9 (800$)\nSniper (3000$)", "Izaberi", "Izadji");
SendClientMessage(playerid, COLOR_GREEN, "Otvorili ste meni za kupovinu oruzja");
}
}
return 1;
}