Nothing happends with this command?
#1

Hey guys. I have a radio cmd but nothing happends when I do /r text

Код:
	if (strcmp("/r", cmdtext, true, 2) == 0)
	{
	new str[128], pName[MAX_PLAYER_NAME];
	GetPlayerName(playerid,pName,sizeof(pName));
	format(str,sizeof(str) , "[Radio] (%s): %s",pName, cmdtext [ 3 ] );
	for(new loopplayers = 0; loopplayers<MAX_PLAYERS; loopplayers ++)
		{
			if(IsPlayerConnected(loopplayers))
			{
				if (GetPlayerColor(playerid) == GetPlayerColor(loopplayers))
				{
					SendClientMessage(loopplayers,0xFF0000AA,str); // red
				}
			}
		}
	return 1;
}
Can someone fix this script for me or tell me what I have to do please?

Kind regards, bart
Reply
#2

Nobody knosw how to fiX?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)