[ASK] teamid limit on SetPlayerTeam ?
#2

Quote:
Originally Posted by hack4ever
Посмотреть сообщение
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
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 255");
    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;
}
Here's the chatlog
Код:
[14:56:48] Your team has been changed. Your team -> 44.
Thanks
You do understand that those are simply values. They have nothing to do with setting a players team. Each team has it's own assigned value. If you have to teams, USA and Russia as an example, USA would probably be 1 and Russia 2.

According to your code, you have 9999999 teams? But then you have a return message saying the maximum is 255.
Reply


Messages In This Thread
[ASK] teamid limit on SetPlayerTeam ? - by hack4ever - 02.08.2011, 08:20
Re: [ASK] teamid limit on SetPlayerTeam ? - by Kush - 02.08.2011, 08:26
Re: [ASK] teamid limit on SetPlayerTeam ? - by hack4ever - 02.08.2011, 08:30
Re: [ASK] teamid limit on SetPlayerTeam ? - by cessil - 02.08.2011, 09:13
Re: [ASK] teamid limit on SetPlayerTeam ? - by hack4ever - 02.08.2011, 11:59
Re: [ASK] teamid limit on SetPlayerTeam ? - by Vince - 02.08.2011, 12:19

Forum Jump:


Users browsing this thread: 2 Guest(s)