Detaljan opis problema: Ovako, posto sam poceo da radim svoju skriptu od 0, zadnje sto sam radio jeste Biz Sistem (Sistem Firmi),
i sve lepo uradio, i izbacuje mi errore, dole se nalaze.
Dio skripte: Od linije '4548' pocinju errorsi, pa do '5078' evo te sve linije:
[pawn]if(dialogid == KUPOVINA_PIZZA) //Linija 4548
{
if(!response) return 1;
if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""PLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
new Float:hp, Float:nhp; GetPlayerHealth(playerid, hp);
nhp = floatadd(hp, 10.0); SetPlayerHealth(playerid, nhp);
if(nhp > 99.0) SetPlayerHealth(playerid, 99.0);
if(nhp >= 99.0) return SCM(playerid,-1,"[ON:RP]: "PLAVA"Ne jede vam se i ne pije!");
new string[50];
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pNovacDzep] < 30) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 30$!");
FirmaNovac(UsaoFirma[playerid], 30);
acdodajem_NovacMinus(playerid,30);
format(string, sizeof(string), "* %s jede kapricozu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 1:
{
if(PlayerInfo[playerid][pNovacDzep] < 25) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 25$!");
FirmaNovac(UsaoFirma[playerid], 25);
acdodajem_NovacMinus(playerid,25);
format(string, sizeof(string), "* %s jede margaritu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 2:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s jede piletinu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 3:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s jede pomfrit.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 4:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije limunadu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 5:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije kafu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
}
}
//////////////////////////////////////////////////////////////////////////////////////
if(dialogid == KUPOVINA_CLUCKIN)
{
if(!response) return 1;
if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""PLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
new Float:hp, Float:nhp; GetPlayerHealth(playerid, hp);
nhp = floatadd(hp, 15.0); SetPlayerHealth(playerid, nhp);
if(nhp > 99.0) SetPlayerHealth(playerid, 99.0);
if(nhp >= 99.0) return SCM(playerid,-1,"[ON:RP]: "PLAVA"Ne jede vam se i ne pije!");
new string[50];
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s jede hamburger.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 1:
{
if(PlayerInfo[playerid][pNovacDzep] < 20) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 20$!");
FirmaNovac(UsaoFirma[playerid], 20);
acdodajem_NovacMinus(playerid,20);
format(string, sizeof(string), "* %s jede sladoled tortu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
///////////////////
}
case 2:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s jede sendvic.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 3:
{
if(PlayerInfo[playerid][pNovacDzep] < 20) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 20$!");
FirmaNovac(UsaoFirma[playerid], 20);
acdodajem_NovacMinus(playerid,20);
format(string, sizeof(string), "* %s jede burek.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 4:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s jede krofnu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 5:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s pije kakao.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 6:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije coca colu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 7:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije kafu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
}
}
//////////////////////////////////////////////////////////////////////////////////////
if(dialogid == KUPOVINA_BURG)
{
if(!response) return 1;
if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""PLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
new Float:hp, Float:nhp; GetPlayerHealth(playerid, hp);
nhp = floatadd(hp, 10.0); SetPlayerHealth(playerid, nhp);
if(nhp > 99.0) SetPlayerHealth(playerid, 99.0);
if(nhp >= 99.0) return SCM(playerid,-1,"[ON:RP]: "PLAVA"Ne jede vam se i ne pije!");
new string[50];
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s jede hamburger.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 1:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s jede cheeseburger.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 2:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s jede pomfrit.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 3:
{
if(PlayerInfo[playerid][pNovacDzep] < 20) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 20$!");
FirmaNovac(UsaoFirma[playerid], 20);
acdodajem_NovacMinus(playerid,20);
format(string, sizeof(string), "* %s jede pilece medaljone.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 4:
{
if(PlayerInfo[playerid][pNovacDzep] < 25) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 25$!");
FirmaNovac(UsaoFirma[playerid], 25);
acdodajem_NovacMinus(playerid,25);
format(string, sizeof(string), "* %s jede mijesanu salatu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 5:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije kafu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 6:
{
if(PlayerInfo[playerid][pNovacDzep] < 15) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 15$!");
FirmaNovac(UsaoFirma[playerid], 15);
acdodajem_NovacMinus(playerid,15);
format(string, sizeof(string), "* %s pije caj.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 7:
{
if(PlayerInfo[playerid][pNovacDzep] < 20) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 20$!");
FirmaNovac(UsaoFirma[playerid], 20);
acdodajem_NovacMinus(playerid,20);
format(string, sizeof(string), "* %s jede sladoled.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 8:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije coca colu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 9:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije vodu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
}
}
//////////////////////////////////////////////////////////////////////////////////////
if(dialogid == KUPOVINA_RESTORAN)
{
if(!response) return 1;
if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""PLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
new Float:hp, Float:nhp; GetPlayerHealth(playerid, hp);
nhp = floatadd(hp, 20.0); SetPlayerHealth(playerid, nhp);
if(nhp > 99.0) SetPlayerHealth(playerid, 99.0);
if(nhp >= 99.0) return SCM(playerid,-1,"[ON:RP]: "PLAVA"Ne jede vam se i ne pije!");
new string[50];
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pNovacDzep] < 20) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 20$!");
FirmaNovac(UsaoFirma[playerid], 20);
acdodajem_NovacMinus(playerid,20);
format(string, sizeof(string), "* %s jede supu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 1:
{
if(PlayerInfo[playerid][pNovacDzep] < 30) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 30$!");
FirmaNovac(UsaoFirma[playerid], 30);
acdodajem_NovacMinus(playerid,30);
format(string, sizeof(string), "* %s jede pasulj.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 2:
{
if(PlayerInfo[playerid][pNovacDzep] < 40) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 40$!");
FirmaNovac(UsaoFirma[playerid], 40);
acdodajem_NovacMinus(playerid,40);
format(string, sizeof(string), "* %s jede riblju corbu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 3:
{
if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 60$!");
FirmaNovac(UsaoFirma[playerid], 60);
acdodajem_NovacMinus(playerid,60);
format(string, sizeof(string), "* %s jede slovenski kulen.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 4:
{
if(PlayerInfo[playerid][pNovacDzep] < 30) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 30$!");
FirmaNovac(UsaoFirma[playerid], 30);
acdodajem_NovacMinus(playerid,30);
format(string, sizeof(string), "* %s jede pitu od sira.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 5:
{
if(PlayerInfo[playerid][pNovacDzep] < 70) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 70$!");
FirmaNovac(UsaoFirma[playerid], 70);
acdodajem_NovacMinus(playerid,70);
format(string, sizeof(string), "* %s jede raznjice.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 6:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s jede palacinke.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 7:
{
if(PlayerInfo[playerid][pNovacDzep] < 30) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 30$!");
FirmaNovac(UsaoFirma[playerid], 30);
acdodajem_NovacMinus(playerid,30);
format(string, sizeof(string), "* %s jede cvarke.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 8:
{
if(PlayerInfo[playerid][pNovacDzep] < 90) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 90$!");
FirmaNovac(UsaoFirma[playerid], 90);
acdodajem_NovacMinus(playerid,90);
format(string, sizeof(string), "* %s jede biftek.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 9:
{
if(PlayerInfo[playerid][pNovacDzep] < 50) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 50$!");
FirmaNovac(UsaoFirma[playerid], 50);
acdodajem_NovacMinus(playerid,50);
format(string, sizeof(string), "* %s jede proju.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
OnePlayAnim(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
///////////////////
}
case 10:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije coca colu.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
case 11:
{
if(PlayerInfo[playerid][pNovacDzep] < 100) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 100$!");
FirmaNovac(UsaoFirma[playerid], 100);
acdodajem_NovacMinus(playerid,100);
format(string, sizeof(string), "* %s pije viski.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
///////////////////
}
case 12:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije pivo.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
///////////////////
}
case 13:
{
if(PlayerInfo[playerid][pNovacDzep] < 10) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 10$!");
FirmaNovac(UsaoFirma[playerid], 10);
acdodajem_NovacMinus(playerid,10);
format(string, sizeof(string), "* %s pije gusti sok.", GetName(playerid));
ProxDetector(15.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
///////////////////
}
}
}
//////////////////////////////////////////////////////////////////////////////////////
if(dialogid == KUPOVINA_GUNSHOP)
{
if(!response) return 1;
if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""PLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,-1, ""PLAVA"[ON:RP]: "SIVA"Morate biti level 2 da bi mogli kupovati oruzije!");
FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
switch(listitem)
{
case 0:
{
if(PlayerInfo[playerid][pNovacDzep] < 100) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 100$!");
GivePlayerWeapon(playerid,4,1);
FirmaNovac(UsaoFirma[playerid], 100);
acdodajem_NovacMinus(playerid,100);
SCM(playerid,-1,""SIVA"Kupili ste noz za 100$!");
}
case 1:
{
if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 60$!");
GivePlayerWeapon(playerid,5,1);
FirmaNovac(UsaoFirma[playerid], 60);
acdodajem_NovacMinus(playerid,60);
SCM(playerid,-1,""SIVA"Kupili ste palicu za 60$!");
}
case 2:
{
if(PlayerInfo[playerid][pNovacDzep] < 500) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 500$!");
GivePlayerWeapon(playerid,25,60);
FirmaNovac(UsaoFirma[playerid], 500);
acdodajem_NovacMinus(playerid,500);
SCM(playerid,-1,""SIVA"Kupili ste shotgun za 500$!");
}
case 3:
{
if(PlayerInfo[playerid][pNovacDzep] < 250) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 250$!");
GivePlayerWeapon(playerid,46,1);
FirmaNovac(UsaoFirma[playerid], 250);
acdodajem_NovacMinus(playerid,250);
SCM(playerid,-1,""SIVA"Kupili ste padobran za 250$!");
}
case 4:
{
if(PlayerInfo[playerid][pNovacDzep] < 600) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 600$!");
GivePlayerWeapon(playerid,24,50);
FirmaNovac(UsaoFirma[playerid], 600);
acdodajem_NovacMinus(playerid,600);
SCM(playerid,-1,""SIVA"Kupili ste dezert za 600$!");
}
case 5:
{
if(PlayerInfo[playerid][pNovacDzep] < 1000) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 1000$!");
GivePlayerWeapon(playerid,31,150);
FirmaNovac(UsaoFirma[playerid], 1000);
acdodajem_NovacMinus(playerid,1000);
SCM(playerid,-1,""SIVA"Kupili ste M4 za 1000$!");
}
case 6:
{
if(PlayerInfo[playerid][pNovacDzep] < 1000) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 1000$!");
GivePlayerWeapon(playerid,30,150);
FirmaNovac(UsaoFirma[playerid], 1000);
acdodajem_NovacMinus(playerid,1000);
SCM(playerid,-1,""SIVA"Kupili ste AK-47 za 1000$!");
}
case 7:
{
if(PlayerInfo[playerid][pNovacDzep] < 900) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 900$!");
GivePlayerWeapon(playerid,29,100);
FirmaNovac(UsaoFirma[playerid], 900);
acdodajem_NovacMinus(playerid,900);
SCM(playerid,-1,""SIVA"Kupili ste MP5 za 900$!");
}
case 8:
{
if(PlayerInfo[playerid][pNovacDzep] < 2000) return SCM(playerid,-1,""PLAVA"[ON:RP]: "SIVA"Nemate dovoljno novca 2000$!");
GivePlayerWeapon(playerid,34,60);
FirmaNovac(UsaoFirma[playerid], 2000);
acdodajem_NovacMinus(playerid,2000);
SCM(playerid,-1,""SIVA"Kupili ste Sniper za 2000$!");
}
}
}
//////////////////////////////////////////////////////////////////////////////////////
if(dialogid == KUPOVINA_SEXSHOP)
{
if(!response) return 1;
if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""PLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
switch(listitem) //Linija 5078 [/pawn]
ERRORSI
[pawn]D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4548) : error 017: undefined symbol "dialogid"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4550) : error 017: undefined symbol "response"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4558) : error 017: undefined symbol "listitem"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4623) : error 017: undefined symbol "dialogid"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4625) : error 017: undefined symbol "response"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4633) : error 017: undefined symbol "listitem"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4719) : error 017: undefined symbol "dialogid"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4721) : error 017: undefined symbol "response"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4729) : error 017: undefined symbol "listitem"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4835) : error 017: undefined symbol "dialogid"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4837) : error 017: undefined symbol "response"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4845) : error 017: undefined symbol "listitem"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4990) : error 017: undefined symbol "dialogid"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4992) : error 017: undefined symbol "response"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(4996) : error 017: undefined symbol "listitem"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(5073) : error 017: undefined symbol "dialogid"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(5075) : error 017: undefined symbol "response"
D:\Old Nation - by Vasic\gamemodes\onscript.pwn(5078) : error 017: undefined symbol "listitem"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
18 Errors.
[/pawn]
Jesi zatvorio sve { } ?
Da
GRESKA! Fixao sam, pogresio sam, u mesto da stavim DIALOG pod OnDIalogResponse ja stavio pod komandu! ;)