28.02.2012, 16:37
Nгo, creio eu q vc use strcmp e strtok entao ai vai...
pawn Код:
if(strcmp(cmd, "/mudarcor", true) == 0)
{
new cor1[3], cor2[3], idx; cor1 = strtok(cmdtext, idx); cor2 = strtok(cmdtext, idx);
if(!strlen(cor1) || !strlen(cor2))
return SendClientMessage(playerid, COR_CINZA, "USE /mudarcor [COR 1] [COR 2]");
if(cor1 < 0 || cor1 > 300)
return SendClientMessage(playerid, COR_VERMELHO, "Use de 0/300.");
if(cor2 < 0 || cor2 > 300)
return SendClientMessage(playerid, COR_VERMELHO, "Use de (0-300).");
SendClientMessage(playerid, -1, "Info Vocк trocou a cor do seu veiculo");
return ChangeVehicleColor(GetPlayerVehicleID(playerid), cor1, cor2);
}