Jump to content
  • 0

Problema.


Vlady

Question

Salut,am facut o comanda prin care playerii dintr-un clan vad prin Announce mesajul scris de lideri.

Uita-ti comanda:

CMD:cscreen(playerid, params[])
{
    new string[129], pName[24];

    GetPlayerName(playerid, pName,sizeof(pName));

    if(GetPlayerClanRank(playerid) < 4) return SendClientMessage(playerid, COLOR_RED, "{FF0000}ERROR: You have to be Clan Leader to use this comamnd!");

    if(isnull(params))
	return SendClientMessage(playerid,COLOR_ORANGE, "USAGE: /cscreen [Text]");

    format(string, sizeof(string), "~r~~h~%s~n~~w~%s", pName, params);
    SendAnnounceToClanMembers(playerid, string, 3000, 4)
    return ( 1 );
}
Si functia:
stock SendAnnounceToClanMembers(playerid, string[], 3000, 4)
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
	    if(IsPlayerAnyClanMember(playerid) == 1)
		{
			if(IsPlayerConnected(i) == 1)
			{
				if(IsPlayerClanMember(playerid, GetPlayerClan(playerid)) && IsPlayerClanMember(i, GetPlayerClan(i)))
				{
                    if(strcmp(GetPlayerClan(playerid), GetPlayerClan(i), true, 30) == 0)
                    {
						GameTextForPlayer(i, string, 3000, 4);
					}
				}
			}
		}
	}
 	return ( 1 );
}
Si imi da niste erori si warnings si nush cum sa le rezolv.
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Server\filterscripts\Createclan.pwn(884) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Server\filterscripts\Createclan.pwn(884) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Server\filterscripts\Createclan.pwn(885) : error 001: expected token: ";", but found "return"
C:\Documents and Settings\Vlady-Valy\Desktop\Others\Server\filterscripts\Createclan.pwn(1826) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.