SA-MP Forums Archive
help?how i remove this error? - 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: help?how i remove this error? (/showthread.php?tid=494665)



help?how i remove this error? - PAF - 14.02.2014

error:
(1204) : error 004: function "SetPlayerTeamFromClass" is not implemented

error line:
SetTimerEx("KickPlayer",200,false,"d", playerid);


Re: help?how i remove this error? - Brandon_More - 14.02.2014

pawn Код:
public SetPlayerTeamFromClass(playeid, classid)
Show us...


- PAF - 14.02.2014

where i put it

anyone know to remove this error hahaha :P are they scripters

help


unction "SetPlayerTeamFromClass" is not implemented

function "SetPlayerTeamFromClass" is not implemented

how i remove these errors


Re: help?how i remove this error? - MarkenFrank1 - 14.02.2014

Show us more of the code, maybe we can see the problem better.


Re: help?how i remove this error? - PAF - 14.02.2014

Quote:
Originally Posted by MarkenFrank1
Посмотреть сообщение
Show us more of the code, maybe we can see the problem better.
#if LoginTextDraw == false
format(Jstring, sizeof(Jstring),"Nick name \"%s\" registered.\nPlease enter your password to login", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Login", Jstring, "Login", "Quit");
#endif
SendClientMessage(playerid,lighterblue,"Nick name is registered!");
SendClientMessage(playerid,red,"Please '/login' access your account");
}
}
if(ForbiddenNamesKick == 1 && IsForbiddenNick(playerid) == 1)
{
format(Jstring, sizeof(Jstring),"{FB0404}Your nick name \"%s\" is in blacklist. please relog\nwith a new nick name", GetName(playerid));
ShowPlayerDialog(playerid, JDIALOGS+45, DIALOG_STYLE_MSGBOX," {FB0404}Forbidden nick", Jstring, "Ok", "");
SetTimerEx("KickPlayer",200,false,"d", playerid);
format(Jstring, sizeof(Jstring),"\"%s\" has been automatically kicked | reason: 'Forbidden Name'", GetName(playerid));
SendToAdmins(orange,Jstring);
WriteToLog(Jstring,"KickLog");


Re: help?how i remove this error? - PAF - 15.02.2014

help me anyone


Re: help?how i remove this error? - ShaneOvSina - 15.02.2014

Be patient, you will get help eventually.


Re: help?how i remove this error? - PAF - 15.02.2014

plz chelp how to remove this


Re: help?how i remove this error? - SickAttack - 15.02.2014

Do what is below, what i mean by do is to follow what is below.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid,classid);
    // Rest of the code...
}

SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0)
    {
            SendClientMessage(playerid, 0xFFFFFFFF, "Skin 0"); // Change this with what you want
    }
        if(classid == 1)
    {
            SendClientMessage(playerid, 0xFFFFFFFF, "Skin 1"); // Change this with what you want
    }
        // Rest of the code...
}


SetTimerEx("KickPlayer",200,false,"d", playerid); // Put this where you want to set the timer

forward KickPlayer(playerid);
public KickPlayer(playerid)
{
    Kick(playerid);
}
Hope it helps you out!


Re: help?how i remove this error? - PAF - 15.02.2014

http://pastebin.com/TH4eU8kZ

sick attack see this and tell me how to fix plz and if you will help me then i will give you +rep