[HELP] Warn Setplayerclass - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Warn Setplayerclass (
/showthread.php?tid=215698)
[HELP] Warn Setplayerclass -
GoldEagle - 23.01.2011
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
Re: [HELP] Warn Setplayerclass -
ricardo178 - 23.01.2011
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
Re : [HELP] Warn Setplayerclass -
Amine_Mejrhirrou - 23.01.2011
Delet
new SetPlayerClass that's all
Re: Re : [HELP] Warn Setplayerclass -
ricardo178 - 23.01.2011
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?
Re: Re : [HELP] Warn Setplayerclass -
GoldEagle - 31.01.2011
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
)