24.06.2015, 09:25
When i try to use function Text_MessageBox i receive the following errors:
Line 272:
The whole function:
Код 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
Quote:
Text_MessageBox(playerid, using inline OnDMVDialog, $DMV_DIALOG_TITLE, $FIFTH_CHECKPOINT_DMV_DIALOG, $DIALOGS_OK, $DIALOGS_CANCEL); |
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; } |