[Ajuda] Erro ao colocar comando
#3

pawn Код:
if(strcmp(cmdtext, "/travar", true) == 0) {
    {
    new Travar[ MAX_PLAYERS ];
    new vehicleid = GetPlayerVehicleID( playerid ), engine,lights, alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine,lights, alarm, doors, bonnet, boot, objective);
    if( Travar[playerid] == 0)
    {
    Travar[playerid] = 1;
    SetVehicleParamsEx(vehicleid, false,lights, alarm, doors, bonnet, boot, objective);
    SendClientMessage( playerid, -1, " Veiculo Travado");
    }
    else if ( Travar[playerid] == 1)
    {
    Travar[playerid] = 0;
    SetVehicleParamsEx(vehicleid, true,lights, alarm, doors, bonnet, boot, objective);
    SendClientMessage( playerid, -1, " Veiculo Destravado");
    }
    return 1;
}
creio q deu aki compilo normal
Reply


Messages In This Thread
Erro ao colocar comando - by MorreJa - 01.02.2013, 17:40
Re: Erro ao colocar comando - by mau.tito - 01.02.2013, 17:57
Re: Erro ao colocar comando - by Wellington1999 - 01.02.2013, 18:10
Re: Erro ao colocar comando - by MorreJa - 01.02.2013, 18:14
Re: Erro ao colocar comando - by Wellington1999 - 01.02.2013, 18:30
Re: Erro ao colocar comando - by MorreJa - 01.02.2013, 19:35
Re: Erro ao colocar comando - by MorreJa - 01.02.2013, 20:44
Re: Erro ao colocar comando - by Wellington1999 - 01.02.2013, 20:46
Re: Erro ao colocar comando - by MorreJa - 01.02.2013, 20:52
Re: Erro ao colocar comando - by Wellington1999 - 01.02.2013, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)