SA-MP Forums Archive
I need help now please! - 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: I need help now please! (/showthread.php?tid=605407)



I need help now please! - MarkNelson - 18.04.2016

Hello guys i have these errors in my first script :

Код:
C:\Users\infogenie\Desktop\ME\filterscripts\ireg.pwn(288) : error 035: argument type mismatch (argument 3)
C:\Users\infogenie\Desktop\ME\filterscripts\ireg.pwn(289) : error 035: argument type mismatch (argument 3)
here is the lines :

Код:
ShowPlayerDialog(playerid, DIALOG_STYLE_LIST, "Lemon's Crazy City", "This is Death-Match/Freeroam Server \nIn this server players goal is killing thier enemies or freeroaming /nBut they can team up and make wars if they want.\nWe are really happy for you and we hope you to enjoy our server.\nAnyway we are on BETA MOD VERSION.\nDo you Want to play in our server?", "Yes");
 ShowPlayerDialog(playerid, DIALOG_STYLE_LIST, "Lemons's Crazy City Rules by Rusty", "Do not abuse any bugs.\nDo not flame/provoke anyone.\nDo not use any kind of hacks or cheats, illegal mods.\nDo not spam or flood.\nDo not ask for money, etc...\nFailure to follow the rules will lead to punishments.\nDo you agree to the server rules?", "Yes");
i hope you to help me right now !


Re: I need help now please! - Luis- - 18.04.2016

The message looks way to long, try using strcat.


Re: I need help now please! - MarkNelson - 18.04.2016

how?


Re: I need help now please! - Darkwood17 - 18.04.2016

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


Re: I need help now please! - MarkNelson - 18.04.2016

can you show an example with string but use my lines? :/ please?


Re: I need help now please! - Luis- - 18.04.2016

Hang on a minute. I've noticed your syntax isn't right. Try this first.

pawn Код:
ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_LIST, "Lemon's Crazy City", "This is Death-Match/Freeroam Server \nIn this server players goal is killing thier enemies or freeroaming /nBut they can team up and make wars if they want.\nWe are really happy for you and we hope you to enjoy our server.\nAnyway we are on BETA MOD VERSION.\nDo you Want to play in our server?", "Yes");
 ShowPlayerDialog(playerid, 1001,DIALOG_STYLE_LIST, "Lemons's Crazy City Rules by Rusty", "Do not abuse any bugs.\nDo not flame/provoke anyone.\nDo not use any kind of hacks or cheats, illegal mods.\nDo not spam or flood.\nDo not ask for money, etc...\nFailure to follow the rules will lead to punishments.\nDo you agree to the server rules?", "Yes");
Although, only one will show seeing as there both being used in the same command.


Re: I need help now please! - MarkNelson - 18.04.2016

i tried that but look warnings now

Код:
C:\Users\infogenie\Desktop\ME\filterscripts\ireg.pwn(286) : warning 202: number of arguments does not match definition
C:\Users\infogenie\Desktop\ME\filterscripts\ireg.pwn(287) : warning 202: number of arguments does not match definition



Respuesta: I need help now please! - aoEXE - 18.04.2016

missing some parameters...
Код:
ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);



Re: I need help now please! - MarkNelson - 18.04.2016

you saw Luis's lines? i copied them. Then the warnings poped up please fix them and post them here


Respuesta: I need help now please! - aoEXE - 18.04.2016

MISSING PARAMETERS

READ TO SOLUTION: https://sampwiki.blast.hk/wiki/ShowPlayerDialog