How To fix This - 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: How To fix This (
/showthread.php?tid=612968)
How To fix This -
RamzyR - 23.07.2016
Can anyBody Tell Me How to fix This Problems
Dialog Response
Код:
if(dialogid == DIALOG_RULES) (28995)
{
if(response) (28997)
{
SendClientMessage(playerid, COLOR_GREEN, "Thank you for agreeing to the server rules!");
}
else (29001)
{
format(string,sizeof(string),"{00FF40}%s {FAF623}has been kicked by Server {FAF623}[reason: Disagree Rules] ",playername); SendClieSendClientMessageToAll(COLOR_RED,string);
SendClientMessage(Playerid, COLOR_RED, "You've Been Kicked By server Because Of disagreeing Rules ");
Kick(playerid); (29005)
} (29007)
return 1; (29008)
}
return 0; (29011)
}
The CMD:
Код:
CMD:rules(playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "Server Rules", "- No Cheating\n- No Spamming\n- Respect Admins\n\nDo you agree to these rules?", "Yes", "No");
}
Re: How To fix This ..! -
VVWVV - 23.07.2016
Where is your problems (errors/warnings)?
Re: How To fix This ..! -
RamzyR - 23.07.2016
Quote:
Originally Posted by VVWVV
Where is your problems (errors/warnings)?
|
Sorry, I forgot To Upload i edited The Post
Re: How To fix This ..! -
SyS - 23.07.2016
what is
PHP код:
SendClieSendClientMessageToAll(COLOR_RED,string);
change it
to
PHP код:
SendClientMessageToAll(COLOR_RED,string);
and you may have some brace issue which made it in another branch or outside the dialog call back
and its playerid not Playerid
PHP код:
SendClientMessage(Playerid, COLOR_RED, "You've Been Kicked By server Because Of disagreeing Rules ");
change it to
PHP код:
SendClientMessage(playerid, COLOR_RED, "You've Been Kicked By server Because Of disagreeing Rules ");
Re: How To fix This ..! -
RamzyR - 23.07.2016
Quote:
Originally Posted by Sreyas
what is
PHP код:
SendClieSendClientMessageToAll(COLOR_RED,string);
change it
to
PHP код:
SendClientMessageToAll(COLOR_RED,string);
and you may have some brace issue which made it in another branch or outside the dialog call back
and its playerid not Playerid
PHP код:
SendClientMessage(Playerid, COLOR_RED, "You've Been Kicked By server Because Of disagreeing Rules ");
change it to
PHP код:
SendClientMessage(playerid, COLOR_RED, "You've Been Kicked By server Because Of disagreeing Rules ");
|
Fixed But same Problems Still
Re: How To fix This -
SyS - 23.07.2016
as i told in my previous post you might have some bracket issue most probably you put an unneccessary } above this code and that made it out side of ondialogresponse
to save your time scan your code with this software
https://sampforum.blast.hk/showthread.php?tid=322839
and find that unneccessary closing bracket and remove it
Re: How To fix This -
RamzyR - 23.07.2016
Thank You Sreyas