Szerző Téma: /help  (Megtekintve 602 alkalommal)

Nem elérhető Adii

/help
« Dátum: 2017. Február 22. - 00:43:32 »
0
Sziasztok, megint dialoggal van a probléma, azt az ERROR-t dobja a pawno, hogy túl hosszú a sor(ami egyébként tényleg az). Hogyan lehet azt megoldani, hogy több sorba lehessen tenni?
 

else if(dialogid == 55) //HELP parancs dialog
{
    ShowPlayerDialog(playerid, 55, DIALOG_STYLE_MSGBOX, \"ÁLTALÁNOS: {FFFFFF}/stats /serverstats /call (/p)ickup (/h)angup /phchange /namechange /sexchange /agechange /wtc /search /changepass /fuel\\nÁLTALÁNOS: {FFFFFF}/pay (/un)blindfold (/un)tie /colorcar /paintcar /buy /phonebook /withdraw /deposit /wire /paycheck /id\\nÁLTALÁNOS: {FFFFFF}/speedlimit /helpers /joinevent /quitevent /train /stuck\\nÁLTALÁNOS: {FFFFFF}/walkstyle /sb /radio /togtips /killcheckpoints /giveweapon /dropweapon\\nCHAT: {FFFFFF}/o /b /s /l /w /wt /f /r /d /call /sms /report /helpme /accent\\nINTERAKCIÓK: {FFFFFF}/me /do /enter /exit /drop /contract /engine /licenses /showlicenses /tow\\nBIZNISZ: {FFFFFF}/buybiz /vault /lock /sellbiztomarket\\nHÁZ: {FFFFFF}/buyhouse /hdeposit /hwithdraw /lock /sellhousetomarket\\nEGYÉB: {FFFFFF}/animlist /vehhelp /bizhelp /househelp /jobhelp /factionhelp /familyhelp /helperhelp /viphelp /cookieshelp\\nEGYÉB: {FFFFFF}/fishhelp /gatehelp /garagehelp\", \"Rendben\", \"\");
}

 
 

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
/help
« Válasz #1 Dátum: 2017. Február 22. - 01:12:23 »
+1
http://forum.sa-mp.com/showthread.php?t=339149
 
 
 

new mydialog[256];
strcat(mydialog,\"1. Attacked the security guard >> Jail for 15 months and fines for $ 15,000 \\n\");
strcat(mydialog,\"2. Attacking security officers wearing firearms >> Jail for 15 months and fines for $ 25,000 \\n\");
//and the rest of it....
..................
.....................
ShowPlayerDialog(playerid,your dialog id,DIALOG_STYLE_MSGBOX, \"your dialog caption\", mydialog,\"first button\",\"second button\");

 
 

Nem elérhető Adii

/help
« Válasz #2 Dátum: 2017. Február 22. - 17:20:18 »
0
Idézetet írta: Flash date=1487722343


   
      http://forum.sa-mp.com/showthread.php?t=339149
   
   
       
   
   

new mydialog[256];
strcat(mydialog,\"1. Attacked the security guard >> Jail for 15 months and fines for $ 15,000 \\n\");
strcat(mydialog,\"2. Attacking security officers wearing firearms >> Jail for 15 months and fines for $ 25,000 \\n\");
//and the rest of it....
..................
.....................
ShowPlayerDialog(playerid,your dialog id,DIALOG_STYLE_MSGBOX, \"your dialog caption\", mydialog,\"first button\",\"second button\");

   
       
   


Köszönöm, sikerült megoldani. A \"new mydialog[256]\"-ot \"new mydialog[1024]\"-re kellett átírnom de működik.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal