05.05.2011, 20:32
Get rid of the ugly strcmp:
Though it has already been suggested that you should use a list for this kind of stuff. Much easier.
pawn Код:
switch(strval(inputtext))
{
case 1: GivePlayerWeapon(playerid, 8, 1);
case 2: GivePlayerWeapon(playerid, 9, 1);
default: SendClientMessage(playerid, COLOR_RED, "Invalid Input");
}