Errors...
#1

Why these errors?!
Код:
I:\Download\samp03x_svr_R1-2_win32\gamemodes\UG-RP.pwn(12067) : error 029: invalid expression, assumed zero
I:\Download\samp03x_svr_R1-2_win32\gamemodes\UG-RP.pwn(18884) : error 075: input line too long (after substitutions)
Here's the script:
pawn Код:
if (dialogid == 16501 && response)
    {
        if (strlen(inputtext) > 24)
        {
            ShowPlayerDialog(playerid, 16501, DIALOG_STYLE_INPUT, "Passo 1: Destinatario", "Il nome del destinatario non puт essere piщ lungo di 25 caratteri.\n\nInserisci il nome del destinaraio.\n\nNOTA: I nomi sono molto sensitivi, scrivili correttamente.", "Avanti", "Annulla");
            return 1;
        }
        if (strlen(inputtext))
        {
            SetPVarString(playerid, "LetterRecipient", inputtext);
            ShowPlayerDialog(playerid, 16502, DIALOG_STYLE_INPUT, "Passo 2: Indirizzo", "Inserisci l'indirizzo del destinatario.", "Avanti", "Annulla");
            return 1;
        }
        else
        {
            ShowPlayerDialog(playerid, 16501, DIALOG_STYLE_INPUT, "Passo 1: Destinatario", "Mi dispiace, questo nome non esiste sul nostro database\n\nInserisci il nome del destinaraio.\n\nNOTA: I nomi sono molto sensitivi, scrivili correttamente.", "Avanti", "Annulla");
            return 1;
        }
    }
    if (dialogid == 16502)
    {
        if (!response) ShowPlayerDialog(playerid, 16501, DIALOG_STYLE_INPUT, "Passo 1: Destinatario", "Inserisci il nome del destinaraio.\n\nNOTA: I nomi sono molto sensitivi, scrivili correttamente.", "Avanti", "Annulla");
            return 1;
        else
        {
            if (!strlen(inputtext))
            {
                ShowPlayerDialog(playerid, 16502, DIALOG_STYLE_INPUT, "Passo 2: Indirizzo", "Devi inserire un indirizzo.\n\nInserisci l'indirizzo del destinatario.", "Avanti", "Annulla");
                return 1;
            }
            if (strlen(inputtext) > 100)
            {
                ShowPlayerDialog(playerid, 16502, DIALOG_STYLE_INPUT, "Passo 2: Indirizzo", "L'indirizzo non puт essere piщ lungo di 100 caratteri.\n\nInserisci l'indirizzo del destinatario.", "Avanti", "Annulla");
                return 1;
            }
            SetPVarString(playerid, "LetterAddress", inputtext);
            ShowPlayerDialog(playerid, 16503, DIALOG_STYLE_INPUT, "Passo 3: Messaggio", "Inserisci il messaggio che vorresti mandare al destinatario.", "Avanti", "Annulla");
            return 1;
        }
    }
And:
pawn Код:
if(listitem == 7) //  Random Usefull Interiors
        {
        ShowPlayerDialog(playerid, BUSINESSES_INT+8, DIALOG_STYLE_LIST, "Random Usefull interiors", "Italian Resturant\nLiberty City Resturant\nJefferson Motel\nSex Shop\nTen Green Bottles\nTwo Elephants Resturant\nChinese Resturant\nDonuts Store\nAtrium\nBurning Desire\nColonel House\nWelcome Pump\nWoozie Betting shop\nSherman Damn\nCaligula Casino\nRedsands Casino\nInside Track Betting\nMotel 1\nMotel 2\nMotel Room\nCountry Bar\nCrack Den\nMeat Factory\nFlowers Shop\nBank\nDrug\nBack", "Seleziona", "Annulla");
        }
What can I do? Thanks.
Reply
#2

error 075: input line too long (after substitutions) - try using string than the non-string one since you're line is too long.
Reply
#3

Yes, i've already resolved that... But for the invalid expression, assumed zero?
Reply
#4

The string I marked with "HERE" is too long; you need to shorten it.
pawn Код:
if(listitem == 7) //  Random Usefull Interiors
        {
        ShowPlayerDialog(playerid, BUSINESSES_INT+8, DIALOG_STYLE_LIST, "Random Usefull interiors", "HERE", "Seleziona", "Annulla");
        }
And post line 12064 - 12069; and put '//LINE 12067' at the end of line 12067.
Reply
#5

Assuming is this:
pawn Код:
if (!response) ShowPlayerDialog(playerid, 16501, DIALOG_STYLE_INPUT, "Passo 1: Destinatario", "Inserisci il nome del destinaraio.\n\nNOTA: I nomi sono molto sensitivi, scrivili correttamente.", "Avanti", "Annulla");
return 1;
else
{
Remove the return 1;
Reply
#6

Quote:
Originally Posted by EiresJason
Посмотреть сообщение
The string I marked with "HERE" is too long; you need to shorten it.
pawn Код:
if(listitem == 7) //  Random Usefull Interiors
        {
        ShowPlayerDialog(playerid, BUSINESSES_INT+8, DIALOG_STYLE_LIST, "Random Usefull interiors", "HERE", "Seleziona", "Annulla");
        }
And post line 12064 - 12069; and put '//LINE 12067' at the end of line 12067.
I said i've already resolved this!..
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Assuming is this:
pawn Код:
if (!response) ShowPlayerDialog(playerid, 16501, DIALOG_STYLE_INPUT, "Passo 1: Destinatario", "Inserisci il nome del destinaraio.\n\nNOTA: I nomi sono molto sensitivi, scrivili correttamente.", "Avanti", "Annulla");
return 1;
else
{
Remove the return 1;
Thanks!
Reply
#7

Quote:
Originally Posted by alanhutch
Посмотреть сообщение
I said i've already resolved this!..
Why dont you look at when I posted it; and then you can realise that it was probably like 10seconds after your post and I wouldnt have seen it as I was replying.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)