29.03.2009, 13:11
You could do a loop...
pawn Код:
for(new i = 0; i < new_name_string_length; i++)
{
switch(new_name_string[i])
{
case '&', '$', '@', '^': return SendClientMessage(playerid, 0xFF0000FF, "Invalid characters!");
default: continue;
}
}
//Here goes your code to change the nick