SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 24/01/2012, 01:08 PM   #1
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Have problem pls help me out... (error 004: function "SetPlayerTeamFromClass" is not implemented)

Code:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerTeamFromClass(playerid, classid);
	if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6)
    {
        gTeam[playerid] = TEAM_GSF;
        GameTextForPlayer(playerid,"~w~Grove Street Families",3000,5); // This will show up an Text , when you select your class
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
    }
Code:
error 004: function "SetPlayerTeamFromClass" is not implemented
Please help me out + rep
Scrillex is offline   Reply With Quote
Old 24/01/2012, 01:25 PM   #2
Scrillex
High-roller
 
Scrillex's Avatar
 
Join Date: Jan 2012
Location: In my dreams!
Posts: 1,226
Reputation: 31
Default Re: Have problem pls help me out... (error 004: function "SetPlayerTeamFromClass" is not implemented)

Please help me out
Scrillex is offline   Reply With Quote
Old 24/01/2012, 01:43 PM   #3
[HK]Ryder[AN]
High-roller
 
[HK]Ryder[AN]'s Avatar
 
Join Date: Jan 2012
Location: New Delhi, India
Posts: 1,195
Reputation: 365
Default Re: Have problem pls help me out... (error 004: function "SetPlayerTeamFromClass" is not implemented)

Under OnPlayerRequestClass
pawn Code:
public OnPlayerRequestClass(playerid, classid)
{
      SetPlayerTeamFromClass(playerid, classid)
      //rest of the code of your onplayerrequestclass
}
Outside any callback.OUTSIDE.
pawn Code:
SetPlayerTeamFromClass(playerid, classid)
{
    if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6)
     {
        gTeam[playerid] = TEAM_GSF;
        GameTextForPlayer(playerid,"~w~Grove Street Families",3000,5); // This will show up an Text , when you select your class
        SetPlayerPos(playerid,1975.2399,-1220.0157,25.0779); // position of the player in the class selection
        SetPlayerCameraPos(playerid,1969.5686,-1224.0016,24.9909); // Cameraposition
        SetPlayerCameraLookAt(playerid,1975.2399,-1220.0157,25.0779);
        SetPlayerFacingAngle(playerid,122.4500);
        SetPlayerColor(playerid,0xA000FFFF); // Teamcolor
        }
}
Untested
[HK]Ryder[AN] is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 004: function "OnPlayerDeath" is not implemented??? NomNom Help Archive 6 19/08/2011 09:22 PM
error 004: function "LoadDust" is not implemented admantis Help Archive 1 21/12/2010 05:57 AM
error 004: function "PlayerToPoint" is not implemented addmion Help Archive 3 28/11/2009 02:11 PM


All times are GMT. The time now is 07:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.