How to kick? - 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 kick? (
/showthread.php?tid=290516)
How to kick? -
Mr_Scripter - 16.10.2011
Title says all
i got this script
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Registration", "Enter your password to register", "Ok", "Leave");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1){
if(response){
}
else{
//How to make him Kicked???
}
}
return 0;
}
]
i want to make the player get kicked if he press Leave
Re: How to kick? -
Kingunit - 16.10.2011
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Registration", "Enter your password to register", "Ok", "Leave");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
// Do something
}
else
{
Kick(playerid);
}
}
return 0;
}
Re: How to kick? -
Mr_Scripter - 16.10.2011
pawn Код:
E:\GTA - San Andreas\Pawn\gamemodes\SII Script.pwn(238) : error 021: symbol already defined: "ShowPlayerDialog"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
i'm sure ShowPlayerDialog is Not definded already
Re: How to kick? -
Designer Vibe02 - 16.10.2011
search the line "forward ShowPlayerDialog" on your gamemode (no in includes) and delete. try this!
Re: How to kick? -
Mr_Scripter - 16.10.2011
there isn't any
Re: How to kick? -
Mr_Scripter - 16.10.2011
Bump anyone?
Re: How to kick? -
[GOD]Dragonster82 - 16.10.2011
Well, its KIND OF simple
Either 2 of your includes contain both ShowPlayerDialog, so delete either of them.
Re: How to kick? -
Mr_Scripter - 16.10.2011
i have only
pawn Код:
#include <a_samp>
#include <sscanf2>
includes i deleted Zcmd
still i got the problem.. same error
Re: How to kick? -
[GOD]Dragonster82 - 16.10.2011
Let me just put it this way
Delete either of the 2
Example:
Delete a_samp and leave only sscanf2
and so on
Re: How to kick? -
$India$ - 16.10.2011
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Registration", "Enter your password to register", "Ok", "Leave");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
{
// Do something
}
else
{
Kick(playerid);
}
}
return 0;
}
Try This, Untested