Dialog problems
#1

The compile is not running, because it is wrong, but i do not know why:

else if(dialogid == DIALOG_PIAC)
{
listitem++;
switch(termekek)
{
case 1;
{
if(GetMoney(playerid) < 10000)
{
format(string, sizeof(string), "Ezt nem tudod kifizetni...");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
return 1;
}
if(PiacInfo[fMati] < 400)
{
Msg(playerid, "A gyбrnak nincs elйg alkatrйsze a fegyver цsszerakбsбhoz...");
return 1;
}
GiveMoney(playerid, -10000);
GiveWeapon(playerid, 24, 150);
Cselekves(playerid "vett valamit...");
PiacInfo[fMati] = PiacInfo[fMati] - 400;
format(string, sizeof(string), "Sikeresen vettйl egy deagle-t");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, "Piac", string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
}
case 2;
{
if(GetMoney(playerid) < 8000)
{
format(string, sizeof(string), "Ezt nem tudod kifizetni...");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
return 1;
}
if(PiacInfo[fMati] < 300)
{
Msg(playerid, "A gyбrnak nincs elйg alkatrйsze a fegyver цsszerakбsбhoz...");
return 1;
}
GiveMoney(playerid, -8000);
GiveWeapon(playerid, 22, 150);
Cselekves(playerid "vett valamit...");
PiacInfo[fMati] = PiacInfo[fMati] - 300;
format(string, sizeof(string), "Sikeresen vettйl egy colt-ot");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, "Piac", string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
}
case 3;
{
if(GetMoney(playerid) < 5000)
{
format(string, sizeof(string), "Ezt nem tudod kifizetni...");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
return 1;
}
if(PiacInfo[fMati] < 100)
{
Msg(playerid, "A gyбrnak nincs elйg alkatrйsze a fegyver цsszerakбsбhoz...");
return 1;
}
GiveMoney(playerid, -5000);
GiveWeapon(playerid, 3, 1);
Cselekves(playerid "vett valamit...");
PiacInfo[fMati] = PiacInfo[fMati] - 300;
format(string, sizeof(string), "Sikeresen vettйl egy gumibotot");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, "Piac", string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
}
case 4;
{
if(GetMoney(playerid) < 3000)
{
format(string, sizeof(string), "Ezt nem tudod kifizetni...");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
return 1;
}
if(PiacInfo[fMati] < 50)
{
Msg(playerid, "A gyбrnak nincs elйg alkatrйsze a fegyver цsszerakбsбhoz...");
return 1;
}
GiveMoney(playerid, -3000);
GiveWeapon(playerid, 4, 1);
Cselekves(playerid "vett valamit...");
PiacInfo[fMati] = PiacInfo[fMati] - 50;
format(string, sizeof(string), "Sikeresen vettйl egy kйst");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, "Piac", string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
}
case 5;
{
if(GetMoney(playerid) < 5000)
{
format(string, sizeof(string), "Ezt nem tudod kifizetni...");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
return 1;
}
if(PiacInfo[fMati] < 100)
{
Msg(playerid, "A gyбrnak nincs elйg alkatrйsze a fegyver цsszerakбsбhoz...");
return 1;
}
GiveMoney(playerid, -5000);
GiveWeapon(playerid, 5, 1);
Cselekves(playerid "vett valamit...");
PiacInfo[fMati] = PiacInfo[fMati] - 100;
format(string, sizeof(string), "Sikeresen vettйl egy baseball ьtőt");
ShowPlayerDialog(playerid, DIALOG_VESZ, DIALOG_STYLE_MSGBOX, "Piac", string, "OK", "Mйgse");
TogglePlayerControllable(playerid, true);
}
}
}
Reply
#2

Any errors? and please put the code between [pawn] & [/pawn] tags.
Reply
#3

Put the errors here!
Reply
#4

Are you missing a ',' in the Action(playerid, "...") ??

pawn Код:
Cselekves(playerid "...")
should be
pawn Код:
Cselekves(playerid, "...")
right?
Reply
#5

yes, it is also error, but i have more, but the pawnscite only show these errors:

>C:\BajaRPG\pawno\pawncc.exe "C:\baja03c\BajaRPG\gamemodes\BajaRPG.pwn"
>Exit code: -1073741819 Time: 1.991
Reply
#6

Quote:
Originally Posted by FireKill
Посмотреть сообщение
yes, it is also error, but i have more, but the pawnscite only show these errors:

>C:\BajaRPG\pawno\pawncc.exe "C:\baja03c\BajaRPG\gamemodes\BajaRPG.pwn"
>Exit code: -1073741819 Time: 1.991
Upload your whole script to pastebin and send me the link, I will fix it for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)