01.08.2011, 12:12
pawn Код:
if(strcmp(cmd, "/accent", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Usage: /accent <accent> (German, Spanish, American, Irish, Italian)");
return 1;
} // This is line 28396
switch(tmp)
{
case American,Irish,Spanish,German,Italian:
{
format(PlayerInfo[playerid][pAccent],sizeof(accent),"%s",tmp);
format(string, sizeof(string), "Accent changed to %s",PlayerInfo[playerid][pAccent]);
SendClientMessage(playerid, COLOR_GREY, string);
}
default:
{
format(string, sizeof(string), "Invalid Accent", accent);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
}
return 1;
}