Jump to content
  • 0

error 010: invalid function or declaration


Question

Posted

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6388) : error 010: invalid function or declaration

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6390) : error 010: invalid function or declaration

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6400) : error 010: invalid function or declaration

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6402) : error 010: invalid function or declaration

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6412) : error 010: invalid function or declaration

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6414) : error 010: invalid function or declaration

D:\GM SAMP\SAMP03\gamemodes\GM.pwn(6424) : error 010: invalid function or declaration

[pawn]  if(CP[playerid]==77)//

    {

        if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5));

      {

        towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

        GivePlayerMoney(playerid, 10000);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

        GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

        SetVehicleToRespawn(towedcar);

        DisablePlayerCheckpoint(playerid);

}

    }

if(CP[playerid]==76)//

    {

        if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5));

{

        towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

        GivePlayerMoney(playerid, 10000);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

        GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

        SetVehicleToRespawn(towedcar);

        DisablePlayerCheckpoint(playerid);

}

    }

if(CP[playerid]==75)//

    {

        if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5));

{

        towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

        GivePlayerMoney(playerid, 10000);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

        GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

        SetVehicleToRespawn(towedcar);

        DisablePlayerCheckpoint(playerid);

}

    }

return 1;

}[/pawn]

4 answers to this question

Recommended Posts

Posted

[pawn]  if(CP[playerid]==77)//

    {

        if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5))

      {

        towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

        GivePlayerMoney(playerid, 10000);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

        GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

        SetVehicleToRespawn(towedcar);

        DisablePlayerCheckpoint(playerid);

}

    }

if(CP[playerid]==76)//

    {

        if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5))

{

        towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

        GivePlayerMoney(playerid, 10000);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

        GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

        SetVehicleToRespawn(towedcar);

        DisablePlayerCheckpoint(playerid);

}

    }

if(CP[playerid]==75)//

    {

        if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5))

{

        towedcar = GetVehicleTrailer(GetPlayerVehicleID(playerid));

        GivePlayerMoney(playerid, 10000);

        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai distrus masina pentru $3000");

        GameTextForPlayer(playerid, "~b~Masina distrusa cu succes", 2500, 1);

        SetVehicleToRespawn(towedcar);

        DisablePlayerCheckpoint(playerid);

}

    }

return 1;

}[/pawn]

Posted

nu ai modificat nimic  acolo , si tot nu merge .

Uitate bine,nici nu ai incercat,esti constient,leai verificat barem sa vezi ce am scos ?

Tu ai incheiat functia,si dupa ai pus { },sigur nu ai incercat.

if(IsPlayerInVehicle(playerid, tow1) || IsPlayerInVehicle(playerid, tow2) || IsPlayerInVehicle(playerid, tow3) || IsPlayerInVehicle(playerid, tow4) || IsPlayerInVehicle(playerid, tow5));

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.