SA-MP Forums Archive
Text_MessageBox error [y_text] - 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)
+--- Thread: Text_MessageBox error [y_text] (/showthread.php?tid=579077)



Text_MessageBox error [y_text] - andyandyy8 - 24.06.2015

When i try to use function Text_MessageBox i receive the following errors:
Код HTML:
Carabines.pwn(272) : error 017: undefined symbol "DEFAULT_TEXT_SET"
Carabines.pwn(272) : error 017: undefined symbol "FIFTH_CHECKPOINT_DMV_DIALOG"
Carabines.pwn(272) : error 029: invalid expression, assumed zero
Carabines.pwn(272) : fatal error 107: too many error messages on one line
Line 272:
Quote:

Text_MessageBox(playerid, using inline OnDMVDialog, $DMV_DIALOG_TITLE, $FIFTH_CHECKPOINT_DMV_DIALOG, $DIALOGS_OK, $DIALOGS_CANCEL);

The whole function:
Quote:

FUNCTION:SetPlayerDMVCheckpoint(playerid, CP)
{
if(CP < 16)
{
inline OnDMVDialog(pid, dialogid, response, listitem, string:inputtext[])
{
// some code
return 1;
}
//SetPlayerRaceCheckpointEx(playerid, 0,DMV_CHECKPOINT[CP][0], DMV_CHECKPOINT[CP][1], DMV_CHECKPOINT[CP][2], DMV_CHECKPOINT[CP+1][0], DMV_CHECKPOINT[CP+1][1], DMV_CHECKPOINT[CP+1][2], 5, CP);
if(CP == 5)
{
Text_MessageBox(playerid, using inline OnDMVDialog, $DMV_DIALOG_TITLE, $FIFTH_CHECKPOINT_DMV_DIALOG, $DIALOGS_OK, $DIALOGS_CANCEL);
}
else if(CP == 10)
Text_Send(playerid, $TENTH_CHECKPOINT_DMV);
}
else
SetPlayerCheckpointEx(playerid, DMV_CHECKPOINT[CP][0], DMV_CHECKPOINT[CP][1], DMV_CHECKPOINT[CP][2], 5, CP);
return 1;
}




Re: Text_MessageBox error [y_text] - andyandyy8 - 24.06.2015

BUMP
All dialog functions(from y_text) can't be used.
Quote:

Text_MessageBox
Text_InputBox
Text_ListBox
Text_PasswordBox
Text_DialogBox

Do you have any suggestion?


Re: Text_MessageBox error [y_text] - Shetch - 24.06.2015

Read the errors please...

You haven't defined DEFAULT_TEXT_SET and FIFTH_CHECKPOINT_DMV_DIALOG anywhere in your code. Do that and the errors should be solved.


Re: Text_MessageBox error [y_text] - andyandyy8 - 25.06.2015

Thanks for advice but it doesn't work. This FiFTH.. is already defined in mode_text. DEFAULT_TEXT_SET idk what is it.