SA-MP Forums Archive
these errors are? - 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: these errors are? (/showthread.php?tid=296133)



these errors are? - jot16 - 09.11.2011

fixed.


Re: these errors are? - Marshall32 - 09.11.2011

I think the line is really too long.....


Re: these errors are? - jot16 - 09.11.2011

fixed.


Re: these errors are? - MP2 - 09.11.2011

Make the line shorter; use a string.


Re: these errors are? - grand.Theft.Otto - 09.11.2011

https://sampwiki.blast.hk/wiki/Strcat

pawn Код:
if (strcmp("/gps", cmdtext, true, 10) == 0)
{
    new dt[1024]; // dialog text
   
    strcat(dt,"text here ...");
    strcat(dt,"more text here ...");
    // etc ...
    ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "GPS", dt, "Locate", "Cancel");

    return 1;
}



Re: these errors are? - jot16 - 10.11.2011

I get a list on the dialog some times with 2 separate names on the same line.how can i fix it?.for ex:
SanFierroLos Santos
instead of San Fierro
Los Santos


Re: these errors are? - Norn - 10.11.2011

Quote:
Originally Posted by jot16
Посмотреть сообщение
I get a list on the dialog some times with 2 separate names on the same line.how can i fix it?.for ex:
SanFierroLos Santos
instead of San Fierro
Los Santos
Use \n to create a new line.


Re: these errors are? - MP2 - 10.11.2011

pawn Код:
if (strcmp("/gps", cmdtext, true) == 0)
{
    new dt[1024] = "blah Airport\nArea 69\nBayside Airport\nmine Airport\nxxxxx Island Airport\nDillimore Airport\nblah blah\nFort Carson Airport\nFoster Valley Airport\nislan Airport\nIsland Airport\nIsland Airport\nAirport\nLas Venturas Airport\nLos Santos Airport\nMT Chillad Aiport\nmodso Island Airport\nuufg Island Airport";
    strcat(dt, "\nMontgomery Airport\nOcean Flats \nmynameSprings Airport\nPalomino Creek Airport\nwee airport Island Airport\nIsland Airport\nPrickle Pine Airport\nAirport\nSan Fierro Airport\nValle  Airport\nVinewood Airport");
    ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "GPS", dt, "Locate", "Cancel");
}



Re: these errors are? - jot16 - 10.11.2011

thx MP2 and grand theft otto +reppppppppp


Re: these errors are? - jot16 - 11.11.2011

why do i get this error?

Line 44:
pawn Код:
ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "GPS", dt, "Locate", "Cancel");
Cmd:
Код:
COMMAND:gps(playeid, params[])
{
    new dt[1024] = "blah Airport\nArea 69\nBayside Airport\nmine Airport\nxxxxx Island Airport\nAirport\nblah blah\nAirport\nAirport\nislan Airport\nIsland Airport\nIsland Airport\nAirport\nLas Venturas Airport\nLos Santos Airport\n\nmodso Island Airport\nuufg Island Airport";
    ShowPlayerDialog(playerid, 99, DIALOG_STYLE_LIST, "GPS", dt, "Locate", "Cancel");
}
Error:
Код:
San Andreas Multiplayer\filterscripts\GPS.pwn(44) : error 017: undefined symbol "playerid"