hehyo leute und zwar hab ich ein prob mit einm befehl und zwat is dies mein befehl
if (strcmp("/gpns", cmdtext, true, 10) == 0)
{
if(gTeam[playerid] == 1)
{
SetPlayerPos(playerid, 1829.0084,-1680.9541,13.5469);
}
else if(gTeam[playerid] == 2)
{
SetPlayerPos(playerid, 2124.6208,-1947.1683,13.5469);
}
return 1;
}
wen ich /gpns eingeb sagt er mir unknow command ?!? woran kan das liegen ? ich hab gTeam so definert
oben
#define TEAM_LSV 1
#define TEAM_RS 2
und dan die teams einteilen
public SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0)
{
gTeam[playerid] = TEAM_LSV;
}
if (classid == 1)
{
gTeam[playerid] = TEAM_LSV;
}
if (classid == 2)
{
gTeam[playerid] = TEAM_LSV;
}
if (classid == 3)
{
gTeam[playerid] = TEAM_LSV;
}
if (classid == 4)
{
gTeam[playerid] = TEAM_RS;
}
if (classid == 5)
{
gTeam[playerid] = TEAM_RS;
}
if (classid == 6)
{
gTeam[playerid] = TEAM_RS;
}
if (classid == 7)
{
gTeam[playerid] = TEAM_RS;
}
}
was hab ich da falsch gemahct ?