Text_MessageBox error [y_text]
#1

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;
}

Reply
#2

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?
Reply
#3

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.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)