02.08.2011, 08:20
I have a question for my problem. I want set my teamid to 300, but the output is not 300, but 44. I have use SetTeamCount at OnGameModeInit, but it still doesn't work. It means teamid is limited ?
Here's the pic
Here's my code
Here's the chatlog
Thanks
Here's the pic
Here's my code
pawn Код:
CMD:setteam(playerid, params[])
{
new team,string[64];
if(sscanf(params,"d",team)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE : /setteam [teamid]");
if(team < 20 || team > 999999999) return SendClientMessage(playerid, COLOR_RED, "Range teamid is between 20 and 999,999,999");
SetPlayerTeam(playerid,team);
PlayerData[playerid][PlayerTeam] = team;
format(string,sizeof(string),"Your team has been changed. Your team -> %d.",GetPlayerTeam(playerid));
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
Код:
[14:56:48] Your team has been changed. Your team -> 44.