18.12.2014, 01:36
Boas, eu nгo sei linguagem pawn, apenas sei editar, textos, fazer certos comandos bбsicos mesmo bбsicos, mas eu tive a editar este comando e deu 26 erros isso pelo meu conhecimento isso й por causa de o comando nao estar alinhado ou de faltar "{" ou elses nao sei muito bem alguem da ai uma olhada no comando e ajude?
Obrigado desde jб, aviso que nгo sou scripter, apenas tou querendo editar este comando e deu erro, com isso vim aqui pedir ajuda.
Код:
if(strcmp(cmd, "/tarifa", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_MECANICOS, "Comando: /tarifa [preзo]");
return 1;
}
new farprice;
farprice = strval(tmp);
if(farprice < 1 || farprice > 20)
{
SendClientMessage(playerid, COLOR_ERRO, ""ERRO" Tens que definir um preзo entre 1Ђ a 20Ђ.");
return 1;
}
if(PlayerInfo[playerid][Job] == 13 || DynamicFactions[PlayerInfo[playerid][Faction]][fType] == 11)//PlayerInfo[playerid][Job] == 13 ||
{
if(CopOnDuty[playerid] == 1 || GoeOnDuty[playerid] == 1 || GNROnDuty[playerid] == 1)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 420 || GetVehicleModel(vehicleid) == 438)
{
TaxiFarPrice[playerid]= farprice;
format(string, sizeof(string), "[Sindicato dos Tбxis:] %s estб de serviзo no seu Tбxi por %dЂ. Ligue jб 555!",GetPlayerNameEx(playerid), farprice);
SendClientMessageToAll(COLOR_YELLOW, string);
}
else
{
SendClientMessage(playerid, COLOR_ERRO, ""ERRO" Nгo estбs num Tбxi!");
}
else
{
SendClientMessage(playerid, COLOR_ERRO, ""ERRO" Nгo estбs de serviзo!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_ERRO, ""ERRO" Nгo йs Taxista!");
}
}
return 1;
}


