ReconnectNPC won't work -.-
#1

Код:
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
Reply
#2

pawn Код:
stock ReconnectNPC(name[], file[])
{
    GetPlayerID(name, 1);
    if(IsPlayerConnected(playerid))
    {
        if(IsPlayerNPC(playerid))
        {
            Kick(playerid);
        }
    }
    ConnectNPC(name, file);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)