Problem with Command /setgangcolor
#1

When i try to compile my script it give me these errors:

Код:
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32189) : warning 204: symbol is assigned a value that is never used: "string"
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : error 017: undefined symbol "family"
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : error 017: undefined symbol "color"
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : error 029: invalid expression, assumed zero
D:\GTA San Andreas\NGGGG\gamemodes\FGRP.pwn(32206) : fatal error 107: too many error messages on one line
Lines:

Код:
CMD:setgangcolor(playerid, params[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1337 || PlayerInfo[playerid][pGangModerator] >= 1)
	{
		new string[128], family, color[32];
		if(sscanf(params, "is", family, color))
		{
			SendClientMessageEx(playerid, COLOR_GRAD1, "USAGE: /setgangcolor [gangID] [hexcolor]");
			return 1;
		}
		if(family < 1 || family > 10) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Gang ID.");
		if(strlen(color) > 6) return SendClientMessage(playerid, COLOR_GREY, "Please use hex codes that arent longer then 6 charaters e.g FFFFFF");
        family -= 1;
		if(FamilyInfo[family][FamilyTaken] != 1)
		{
			SendClientMessage(playerid, COLOR_GREY, "   That gang isn't being used.");
			return 1;
		}
		if(PlayerInfo[playerid][pAdminDuty] == 0) return SendClientMessage(playerid, -1, "You must be ( /aduty ) to use this Command!");
			return 1;
	    }
	    format(FamilyInfo[family][FamilyBandana], sizeof(color), "%s", color);
		format(string, sizeof(string), "AdmCmd: %s has set gang ID %d's bandana to '%s'.", GetPlayerNameEx(playerid), family+1, color);
		ABroadCast(COLOR_LIGHTRED, string, 1);
		SaveGangs();
	}
	return 1;
}
Reply


Messages In This Thread
Problem with Command /setgangcolor - by Alpha000 - 17.10.2015, 15:45
Re: Problem with Command /setgangcolor - by Jefff - 17.10.2015, 16:15
Re: Problem with Command /setgangcolor - by Alpha000 - 17.10.2015, 17:39
Re: Problem with Command /setgangcolor - by Jefff - 17.10.2015, 18:38
Re: Problem with Command /setgangcolor - by Alpha000 - 17.10.2015, 20:38

Forum Jump:


Users browsing this thread: 1 Guest(s)