stock SendTeamMessage( playerid, t_MSG[ ] ) { for( new i = 0; i < MAX_PLAYERS; i ++ ) { if( GetPlayerTeam( i ) == GetPlayerTeam( playerid ) ) { new c_msg[ 128 ], c_name[ MAX_PLAYER_NAME ]; GetPlayerName( playerid, c_name, sizeof c_name ); format( c_msg, ( 128 ), "[Team Chat] %s: {FFFFFF}%s", c_name, t_MSG ); SendClientMessage( i, GetPlayerColor( playerid ), c_msg ); } else continue; } return ( 1 ); }
if (strcmp("/teamchat", cmdtext, true) == 0 || (strcmp("/tc", cmdtext, true) == 0)) { SendTeamMessage( playerid, t_MSG[ ] ); return 1; }
cmd:teamchat(playerid, params[])
{
SendTeamMessage(playerid, params);
return 1;
}
if(strcmp(cmd, "/teamchat", false) == 0)
{
new length = strlen(cmdtext);
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
new str[128];
format(str,sizeof(str),"[Team] %s: %s", PlayerName, cmdtext[3]);
SendTeamMessage( playerid, str);
return 1;
}
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(484) : error 017: undefined symbol "strrest" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(484) : error 033: array must be indexed (variable "tmp") C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(48 : error 017: undefined symbol "SendClientUsage" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(492) : error 017: undefined symbol "PlayerName" |
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(442) : error 017: undefined symbol "tmp" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(444) : error 035: argument type mismatch (argument 2) C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : error 012: invalid function call, not a valid address C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : warning 215: expression has no effect C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : error 001: expected token: ";", but found ")" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : error 029: invalid expression, assumed zero C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(450) : fatal error 107: too many error messages on one line |
if(!strlen(tmp)) //<- 442 SendClientMessage(playerid, cmdtext, " /teamchat [text]"); //<-444 format(str, sizeof(str), "Teamchat %s: %s", PlayerName(playerid), cmdtext[3]); //<-450
tmp[128];
format(string,sizeof string,"PM Send to %s: %s",gName,inputtext)
C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(451) : error 012: invalid function call, not a valid address C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(451) : warning 215: expression has no effect C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(451) : error 001: expected token: ";", but found ")" C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(451) : error 029: invalid expression, assumed zero C:\Users\Maki\Desktop\server 0.3d\gamemodes\TankDM.pwn(451) : fatal error 107: too many error messages on one line
format(str, sizeof(str), "Teamchat %s: %s", PlayerName(playerid), cmdtext[3]);