SA-MP Forums Archive
[AJUDA]Nгo Funciona - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Nгo Funciona (/showthread.php?tid=305767)



[AJUDA]Nгo Funciona - Saw_BR - 23.12.2011

galera fiz esse comando so que nao funciona:
pawn Код:
if(IsAsawCar(newcar))
{
static sName[24];
GetPlayerName(playerid,sName,24);
if(strcmp(sName,"SAW_BR",true)) return  SendClientMessage(playerid, COLOR_GREEN, "Vocк nгo й SAW_BR   por isso nгo tem a chave desse veнculo!");
{
RemovePlayerFromVehicleEx(playerid);
     }
}
odem me ajudar ?


Re: [AJUDA]Nгo Funciona - Saw_BR - 23.12.2011

nao й erro

pawn Код:
if(IsAsawCar(newcar))
{
static sName[24];
GetPlayerName(playerid,sName,24);
if(strcmp(sName,"SAW_BR",true)) return 0; /// Verificar se quem entro no carro й SAW_BR
{
RemovePlayerFromVehicleEx(playerid);
     }
}

so que quando entro no carro aparece Vocк nгo й SAW_BR por isso nгo tem a chave desse veнculo!


Re: [AJUDA]Nгo Funciona - Victor Cesaroni - 23.12.2011

pawn Код:
if(IsAsawCar(newcar))
{
    static sName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sName, MAX_PLAYER_NAME);
    if(!strcmp(sName, "SAW_BR", true))
    {
        return true;
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREEN, "Vocк nгo й SAW_BR, por isso nгo tem a chave desse veнculo!");
        RemovePlayerFromVehicle(playerid);
    }
}



Re: [AJUDA]Nгo Funciona - Saw_BR - 23.12.2011

pawn Код:
if(IsAsawCar(newcar))
{
    static sName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sName, MAX_PLAYER_NAME);
    if(!strcmp(sName, "SAW_BR", true))
    {
        return true;
    }
    else   ////  warning: 217: loose indentation
    {
        SendClientMessage(playerid, COLOR_GREEN, "Vocк nгo й SAW_BR   por isso nгo tem a chave desse veнculo!");
        RemovePlayerFromVehicle(playerid;)
    }
}
warning: 217: loose indentation


Re: [AJUDA]Nгo Funciona - Mr_Taxi - 23.12.2011

Codigo nao Identado amigo...
Se nao souber como identar use: #pragma tabsize 0
No topo do seu GM.


Re: [AJUDA]Nгo Funciona - Victor Cesaroni - 23.12.2011

Quote:
Originally Posted by Saw_BR
Посмотреть сообщение
pawn Код:
if(IsAsawCar(newcar))
{
    static sName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, sName, MAX_PLAYER_NAME);
    if(!strcmp(sName, "SAW_BR", true))
    {
        return true;
    }
    else   ////  warning: 217: loose indentation
    {
        SendClientMessage(playerid, COLOR_GREEN, "Vocк nгo й SAW_BR   por isso nгo tem a chave desse veнculo!");
        RemovePlayerFromVehicle(playerid);
    }
}
warning: 217: loose indentation
Deve ter perdido a identaзгo em outro lugar, porque nгo vejo nenhuma mб identaзгo no meu code :S


Re: [AJUDA]Nгo Funciona - Saw_BR - 23.12.2011

conssegui resolver com um !TAB||rsrsrs


Re: [AJUDA]Nгo Funciona - Sampizito - 23.12.2011

Se vocк que fazer um carro, que so vocк pode entrar й simples


topo

pawn Код:
new VipCar[0]; // Carros vips
Fazendo 1 sultan tunado

pawn Код:
VipCar[0] = CreateVehicle(560,1541.8882,-1674.9540,13.2660,0.2198,3,3,999999999);
    for(new i = 0; i < 0; i++)
    {
       
        AddVehicleComponent(VipCar[0], 1169);
        AddVehicleComponent(VipCar[0], 1093);
        AddVehicleComponent(VipCar[0], 1094);
        AddVehicleComponent(VipCar[0], 1075);
        AddVehicleComponent(VipCar[0], 1164);
        AddVehicleComponent(VipCar[0], 1165);
        AddVehicleComponent(VipCar[0], 1168);
        AddVehicleComponent(VipCar[0], 1163);
        AddVehicleComponent(VipCar[0], 1087);
        AddVehicleComponent(VipCar[0], 1010);
    }
pawn Код:
if(vId==VipCar[0]) // eu uso vId , a maioria usa vid
        {
            new nome[24];
            GetPlayerName(playerid, nome, sizeof nome);
            if(strfind(nome, "Seu nome", true) == 0)
            {
               SendClientMessage(playerid,COLOR_YELLOW,"Bem vindo ao seu carro Matheus_City.");
               return 1;
            }
            else
            {
               SendClientMessage(playerid,colordesejada,"Vocк nгo й o Matheus_City! xD");
               RemovePlayerFromVehicle(playerid);
               TogglePlayerControllable(playerid, 1);
               return 1;
            }
        }



Re: [AJUDA]Nгo Funciona - [O.z]Caroline - 24.12.2011

pawn Код:
if(IsAsawCar(newcar))
{
     static sName[24]; sName[0] = EOS;
     GetPlayerName(playerid,sName,24);
     if(strcmp(sName,"SAW_BR",true) != 0)
     {
          RemovePlayerFromVehicleEx(playerid);
     }
}