need help - im confused
#1

hello, i really need help

First i have this on my script
Код:
CMD:accent(playerid, params[])
{
	SendClientMessage(playerid, COLOR_GRAD1, "USAGE: {FFFFFF}/accent [name]");
	SendClientMessage(playerid, COLOR_GRAD1, "Available Accents:None, British, Japanese, Chinese, Korean, Scottish, Irish\nAvailable Accents:Mexican, Hick, Cuban, Italian, Gangsta, Australian, Arab\nAvailable Accents:Canadian, Gay, Pikey, Russian, Dutch");

	if(!strcmp(params,"None",true))
	{
		PlayerInfo[playerid][pAccent] = 0;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be None!");
	}
	else if(!strcmp(params,"British",true))
	{
		PlayerInfo[playerid][pAccent] = 1;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be British!");
	}
	else if(!strcmp(params,"Japanese",true))
	{
		PlayerInfo[playerid][pAccent] = 2;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Japanese!");
	}
	else if(!strcmp(params,"Chinese",true))
	{
		PlayerInfo[playerid][pAccent] = 3;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Chinese!");
	}
	else if(!strcmp(params,"Korean",true))
	{
		PlayerInfo[playerid][pAccent] = 4;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Korean!");
	}
	else if(!strcmp(params,"Scottish",true))
	{
		PlayerInfo[playerid][pAccent] = 5;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Scottish!");
	}
	else if(!strcmp(params,"Irish",true))
	{
		PlayerInfo[playerid][pAccent] = 6;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Irish!");
	}
	else if(!strcmp(params,"Mexican", true))
	{
		PlayerInfo[playerid][pAccent] = 7;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Mexican!");
	}
	else if(!strcmp(params,"Hick",true))
	{
		PlayerInfo[playerid][pAccent] = 8;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Hick!");
	}
	else if(!strcmp(params,"Cuban",true))
	{
		PlayerInfo[playerid][pAccent] = 9;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Cuban!");
	}
	else if(!strcmp(params,"Italian",true))
	{
		PlayerInfo[playerid][pAccent] = 10;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Italian!");
	}
	else if(!strcmp(params,"Gangsta",true))
	{
		PlayerInfo[playerid][pAccent] = 11;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Gangsta!");
	}
	else if(!strcmp(params,"Australian",true))
	{
		PlayerInfo[playerid][pAccent] = 12;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Australian!");
	}
	else if(!strcmp(params,"Arab",true))
	{
		PlayerInfo[playerid][pAccent] = 13;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Arab!");
	}
	else if(!strcmp(params,"Canadian",true))
	{
		PlayerInfo[playerid][pAccent] = 14;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Canadian!");
	}
	else if(!strcmp(params,"Gay",true))
	{
		PlayerInfo[playerid][pAccent] = 15;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Gay!");
	}
	else if(!strcmp(params,"Pikey",true))
	{
		PlayerInfo[playerid][pAccent] = 16;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Pikey!");
	}
	else if(!strcmp(params,"Russian",true))
	{
		PlayerInfo[playerid][pAccent] = 17;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Russian!");
	}
	else if(!strcmp(params,"Dutch",true))
	{
		PlayerInfo[playerid][pAccent] = 18;
		SendClientMessage(playerid, COLOR_GRAD1, "You've changed your accent to be Dutch!");
	}
	else return SendClientMessage(playerid, COLOR_GREY, "Invalid accent!");
	return 1;
}
But when in game, i do /accent.
And how to remove the "Invalid accent!" ?

Image :
Reply


Messages In This Thread
need help - im confused - by ILoveBacon - 27.06.2014, 12:03
Re: need help - im confused - by Noliax8 - 27.06.2014, 12:07
Re: need help - im confused - by Konstantinos - 27.06.2014, 12:08
Re: need help - im confused - by ILoveBacon - 27.06.2014, 12:12
Re: need help - im confused - by Konstantinos - 27.06.2014, 12:16
Re: need help - im confused - by ILoveBacon - 27.06.2014, 12:18
Re: need help - im confused - by Noliax8 - 27.06.2014, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)