PDA

View Full Version : help?how i remove this error?


PAF
14/02/2014, 12:00 PM
error:
(1204) : error 004: function "SetPlayerTeamFromClass" is not implemented

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

Brandon_More
14/02/2014, 12:13 PM
public SetPlayerTeamFromClass(playeid, classid)


Show us...

PAF
14/02/2014, 12:18 PM
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

MarkenFrank1
14/02/2014, 12:46 PM
Show us more of the code, maybe we can see the problem better.

PAF
14/02/2014, 12:49 PM
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");

PAF
15/02/2014, 05:16 AM
help me anyone

ShaneOvSina
15/02/2014, 05:19 AM
Be patient, you will get help eventually.

PAF
15/02/2014, 05:26 AM
plz chelp how to remove this

SickAttack
15/02/2014, 05:42 AM
Do what is below, what i mean by do is to follow what is below.

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!

PAF
15/02/2014, 05:56 AM
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

SickAttack
15/02/2014, 06:02 AM
There are a bunch of errors. For example you didn't put 'new Jstring[string];', your code is so messy too.