PlayerTeam Problem - Has no effect
#1

Код:
 if(GetPlayerTeam(playerid) == 0)
 	{
	(TeamName[playerid],128,"Mafia");
	return 1;
	}
It gives me this error:
(321) : warning 215: expression has no effect
Help?
Reply
#2

Quote:
Originally Posted by nickbugun
Код:
 if(GetPlayerTeam(playerid) == 0)
 	{
	(TeamName[playerid],128,"Mafia");
	return 1;
	}
It gives me this error:
(321) : warning 215: expression has no effect
Help?
what are you trying to do here?
are you trying to set the String 'TeamName[playerid]' naar "Mafia"?

then you need to use strmid
Reply
#3

Try:
Код:
strmid(TeamName[playerid], "Mafia", false, strlen("Mafia"), 32);
Reply
#4

I want to do if the player chose class "0" then he will be assigned with the mafia team.
Reply
#5

This will work to i think:

pawn Код:
if(GetPlayerTeam(playerid) == 0)
{
    format(TeamName[playerid],128,"Mafia");
    return 1;
}
But i think strmid is faster then format
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)