these errors are?
#1

fixed.
Reply
#2

I think the line is really too long.....
Reply
#3

fixed.
Reply
#4

Make the line shorter; use a string.
Reply
#5

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;
}
Reply
#6

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

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

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");
}
Reply
#9

thx MP2 and grand theft otto +reppppppppp
Reply
#10

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"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)