dialog - compiler crash :(
#1

Hey guys,

i have this:

Код:
ShowPlayerDialog(playerid,DIALOG_HELP_JOBS,DIALOG_STYLE_MSGBOX,"Jobs","{0EEC2F}Pizza Boy Job\n \
{FFFFFF}Location \t\t{0EEC2F}San Andreas{FFFFFF}\n \
Description \tWhen you enter to pizza vehicle you can join to pizza boy job.\n \
One Deliver \t\t{0EEC2F}100${FFFFFF}\n \
Overall \t\t{0EEC2F}1500${FFFFFF}\n\n \
{0EEC2F}Drug Runner Job{FFFFFF}\n \
Location \t\t{0EEC2F}Los Santos - Ocean Docks{FFFFFF}\n \
Description \tWhen you enter to Jetmax vehicle you can join to drug runner job.\n \
One Deliver \t\t\{0EEC2F}t7 200${FFFFFF}\n \
Overall \t\t{0EEC2F}33 600${FFFFFF}\n\n \
{0EEC2F}Courier{FFFFFF}\n \
Location \t\t{0EEC2F}San Andreas{FFFFFF}\n \
Description \tWhen you enter to any van vehicles you can join to drug runner job.\n \
One Deliver \t\t\t{0EEC2F}1 200${FFFFFF}\n \
Overall \t\t{0EEC2F}8 600${FFFFFF}\n\n \
{0EEC2F}Fireman{FFFFFF}\n \
Location \t\t{0EEC2F}San Andreas{FFFFFF}\n \
Description \tWhen you enter to fire vehicles you can join to fireman job.\n \
One Departure \t\t\t{0EEC2F}2 200${FFFFFF}\n \
Overall \t\t{0EEC2F}11 600${FFFFFF}\n\n \
{0EEC2F}Taxi Driver{FFFFFF}\n \
Location \t\t{0EEC2F}San Andreas\n \
Description \tWhen you enter to taxi vehicles you can join to taxi driver job.\n \
On Customer \t\t{0EEC2F}1 200$ - 4 600${FFFFFF}\n\n \
{0EEC2F}Medic{FFFFFF}\n \
Location \t\t{0EEC2F}San Andreas{FFFFFF}\n \
Description \tWhen you enter to ambulance vehicles you can join to medic job.\n \
One Departure \t\t{0EEC2F}2 500${FFFFFF}\n\n \
{0EEC2F}Policeman\n \
Location \t\t{0EEC2F}San Andreas{FFFFFF}\n \
Description \tWhen you enter to police vehicles you can join to policeman job.\n \
One Departure \t\t{0EEC2F}3 200${FFFFFF}\n\n \
{0EEC2F}Dustman{FFFFFF}\n \
Location \t\t{0EEC2F}San Andreas{FFFFFF}\n \
Descritpion \tWhen you enter to trashmaster vehicle you can join to fireman job.\n \
One Departure \t\t\{0EEC2F}t1 200${FFFFFF}\n \
Overall \t\t{0EEC2F}6 800${FFFFFF}","Ok","");
but when i am compiling it, it crash...
can someone help me?
Reply
#2

That, i am afraid son, will never work. How do you want the dialog to look like?
Reply
#3

Use scripting machine to make dialogs, looks like you're new in scripting.
Reply
#4

Pizza Boy Job
Location San Andreas
Description When you enter to pizza vehicle you can join to pizza boy job.
One Deliver 100$
Overall 1500$

Drug Runner Job
Location Los Santos - Ocean Docks
Description When you enter to Jetmax vehicle you can join to drug runner job.
One Deliver 7 200$
Overall 33 600$

Courier
Location San Andreas
Description When you enter to any van vehicles you can join to drug runner job.
One Deliver 1 200$
Overall 8 600$

Fireman
Location San Andreas
Description When you enter to fire vehicles you can join to fireman job.
One Departure 2 200$
Overall 11 600$

Taxi Driver
Location San Andreas
Description When you enter to taxi vehicles you can join to taxi driver job.
On Customer 1 200$ - 4 600$

Medic
Location San Andreas
Description When you enter to ambulance vehicles you can join to medic job.
One Departure 2 500$

Policeman
Location San Andreas
Description When you enter to police vehicles you can join to policeman job.
One Departure 3 200$

Dustman
Location San Andreas
Descritpion When you enter to trashmaster vehicle you can join to fireman job.
One Departure 1 200$
Overall 6 800$

....


i want this to be showed
Reply
#5

Quote:
Originally Posted by Battlezone
Посмотреть сообщение
Use scripting machine to make dialogs, looks like you're new in scripting.
I am scripting long... ehm yes for samp only 3 months. And in scripting machine crash too, but not crash program but pawn compiler library
Reply
#6

In 1 dialog? Man you'll never be able to see all of it?
Reply
#7

i know, but i tried only half of text and still crash... i need better way how to write this long text
Reply
#8

you could use strcat
example from an very old script:
PHP код:
new S[300];//this is our "main-string" it's big cuz we got a lot of text here ^^
strcat(S,"Sup!\n\n");
    
strcat(S,"so you are looking for help for the Team-robbing system?\n");
    
strcat(S,"well, if so, go and die i wont tell you a thing about it! - joke\n");
    
strcat(S,"Okey, these are the commands:\n\n");
    
strcat(S,"/robteams - shows a list of current robbing-teams.\n");
//and so on untill youre finished with ur text...
ShowPlayerDialog(playerid,4201,DIALOG_STYLE_MSGBOX,"Team-rob sys. {256DDA}East_Crips{FFFFFF} 2012",S,"Okey",""); 
works and you also have a nice text-block in your script
Reply
#9

Do it like this

pawn Код:
if(PlayerStat[playerid][JobID] == 1)
{
ShowPlayerDialog( Dialog, Dialog style, "Job 1", "Text", "O", "K");
}
Reply
#10

Quote:
Originally Posted by CutX
Посмотреть сообщение
you could use strcat
example from an very old script:
PHP код:
new S[300];//this is our "main-string" it's big cuz we got a lot of text here ^^
strcat(S,"Sup!\n\n");
    
strcat(S,"so you are looking for help for the Team-robbing system?\n");
    
strcat(S,"well, if so, go and die i wont tell you a thing about it! - joke\n");
    
strcat(S,"Okey, these are the commands:\n\n");
    
strcat(S,"/robteams - shows a list of current robbing-teams.\n");
//and so on untill youre finished with ur text...
ShowPlayerDialog(playerid,4201,DIALOG_STYLE_MSGBOX,"Team-rob sys. {256DDA}East_Crips{FFFFFF} 2012",S,"Okey",""); 
works and you also have a nice text-block in your script
thanks this work fine ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)