25.08.2014, 13:42
Код:
C:\MyServer\gamemodes\nome.pwn(3659) : error 012: invalid function call, not a valid address C:\MyServer\gamemodes\nome.pwn(3659) : warning 215: expression has no effect C:\MyServer\gamemodes\nome.pwn(3659) : error 001: expected token: ";", but found ")" C:\MyServer\gamemodes\nome.pwn(3659) : error 029: invalid expression, assumed zero C:\MyServer\gamemodes\nome.pwn(3659) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
if (AVehicleData[vid][Owned] == true)
{
// Check if the vehicle is owned by somebody else (strcmp will not be 0)
if (strcmp(AVehicleData[vid][Owner], Name, false) != 0)
{
if(AVehicleData[vid][ComSenha] == 0)
{
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, 0, 0, alarm, doors, bonnet, boot, objective);
format(Msg, 128, TXT_SpeedometerCannotUseVehicle, AVehicleData[vid][Owner]);
SendClientMessage(playerid, -1, Msg);
RemovePlayerFromVehicle(playerid);
}
else if(AVehicleData[vid][ComSenha] == 1)
{
new string_g[6000], speed[6000], rNome[24];
GetPlayerName(playerid, rNome, sizeof(rNome));
format(string_g, sizeof(string_g), "{a9c4e4}Olб {ffffff}%s{a9c4e4}, vimos que esse(a) {ffffff}veiculo {a9c4e4}nгo lhe pertence.\n\n", rNome(playerid));//Essa й a Linha do erro
strcat(speed, string_g);
format(string_g, sizeof(string_g), "{a9c4e4}Este veнculo pertence б {ffffff}%s{a9c4e4}.\n\n", AVehicleData[vid][Owner]);
strcat(speed, string_g);
format(string_g, sizeof(string_g), "{ffffff}Caso queira dirigir esse veнculo, peзa a senha ao dono(a) do veiculo.\nCaso o dono(a) nгo queira passas, por favor, nгo insiste.\n\n{a9c4e4}Digite a senha do veнculo passada pelo dono abaixo:");
strcat(speed, string_g);
ShowPlayerDialog(playerid, DialogSenhaVeh, DIALOG_STYLE_INPUT, "Senha veiculo:", speed, "Confirmar", "Cancelar");
}
}