[HELP] Warn Setplayerclass
#1

Help me with this please: warning 203: symbol is never used: "SetPlayerClass"

Код:
SetPlayerClass(playerid, classid) {

	if(classid == 0) {

	gTeam[playerid] = TEAM_COP;

	} else if(classid == 1) {

	gTeam[playerid] = TEAM_COP;

	} else if(classid == 2) {

	gTeam[playerid] = TEAM_COP;

	} else if(classid == 3) {

	gTeam[playerid] = TEAM_GROOVE;

	} else if(classid == 4) {

	gTeam[playerid] = TEAM_GROOVE;

	} else if(classid == 5) {

	gTeam[playerid] = TEAM_GROOVE;

	} else if(classid == 6) {

	gTeam[playerid] = TEAM_VAGO;

	} else if(classid == 7) {

 	gTeam[playerid] = TEAM_VAGO;

	} else if(classid == 8) {

	gTeam[playerid] = TEAM_VAGO;

	} else if(classid == 9) {

 	gTeam[playerid] = TEAM_AZTECA;

 	} else if(classid == 10) {

 	gTeam[playerid] = TEAM_AZTECA;

	 } else if(classid == 11) {

	 gTeam[playerid] = TEAM_AZTECA;

	 } else if(classid == 12) {

 	gTeam[playerid] = TEAM_BALLA;

	 } else if(classid == 13) {

 	gTeam[playerid] = TEAM_BALLA;

	 } else if(classid == 14) {

	 gTeam[playerid] = TEAM_BALLA;

	 } else if(classid == 15) {

 	gTeam[playerid] = TEAM_ADMIN;

	}

}
I cant find the problem
Reply
#2

This mean you don't use the SetPlayerClass fuction...
You defined it but you don't use it anywhere!

With this i THINK you can make a cmd to set tean no? Why you defined this teams?
Mybe to create a /setteam cmd ?

Like

pawn Код:
if(strcmp(cmdtext, "/setteam, true) == 0)
{
    SetPlayerClass(playerid, classid);
    SendClientMessage(playerid, LIGHT_BLUE, "
Your Team Has Been Changed");
    return 1;
}
P.S: This code SHOULDN'T work! It is only an example
Reply
#3

Delet new SetPlayerClass that's all
Reply
#4

Quote:
Originally Posted by Amine_Mejrhirrou
Посмотреть сообщение
Delet new SetPlayerClass that's all
Or just ignore the warmning... if you defined it, it's because you will use it later no?
Is this a GM... A script maked by you?
Reply
#5

Quote:
Originally Posted by ricardo178
Посмотреть сообщение
Or just ignore the warmning... if you defined it, it's because you will use it later no?
Is this a GM... A script maked by you?
Yes, I'll use this later for a command , now the warning has been removed thanks for help me... and it's a GM (sorry I'm new here )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)