ReconnectNPC won't work -.- - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ReconnectNPC won't work -.- (
/showthread.php?tid=190514)
ReconnectNPC won't work -.- -
Shadow_Gengar - 15.11.2010
Код:
stock ReconnectNPC(const name[], const file[])
{
new playerid = GetPlayerID(name);
if(IsPlayerConnected(playerid))
{
if(IsPlayerNPC(playerid))
{
Kick(playerid);
}
}
ConnectNPC(name,file);
return 1;
}
Pawno returns a tag mismatch @ the line "ConnectNPC.."..
Why? I don't think there are any mistakes in the code.
Greetz ~S_G
Re: ReconnectNPC won't work -.- -
The_Moddler - 15.11.2010
pawn Код:
stock ReconnectNPC(name[], file[])
{
GetPlayerID(name, 1);
if(IsPlayerConnected(playerid))
{
if(IsPlayerNPC(playerid))
{
Kick(playerid);
}
}
ConnectNPC(name, file);
return 1;
}