[Ajuda] Ajuda Warning '-'
#1

Warnings:
PHP код:
new.pwn(193) : warning 213tag mismatch
new.pwn(194) : warning 213tag mismatch
new.pwn(195) : warning 213tag mismatch 
PHP код:
#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <dof2>
#define CaminhoPastaCarros "Concessionaria/TodosOscarros/%d.txt"
#define CaminhoPastaDonos  "Concessionaria/DonosCarros/%s.txt"
#define IdAtual            "Concessionaria/IDVeiculoAtual.txt"
#define Verde                0x00FF00FF
#define Vermelho             0xFF0000AA
#define Azul                 0x0000FFAA
#define Marron               0x804000AA
#define Branco               0xFFFFFFAA
#define Laranja              0xFF8000AA
#define Azul_Marinho         0x80FFFFAA
#define Cinza                0xC0C0C0AA
#define Rosa                 0xFF80FFAA
#define AZUL_CLARO           0x80BFFFAA
#define Verde_Escuro         0x007138AA
#define Amarelo              0xFFFF00AA
#define Roxo                 0x9F009FAA
#define VERDE_AGUA           0x03D687FF
#define CINZA_ESCURO            0x626262FF
#define VERDE                0x21DD00FF
#define VERMELHO_CLARO       0xFB0000FF
#define VERDE_CLARO          0x38FF06FF
#define ROSA_CHOQUE          0xE100E1FF
#define VERDE_ESCURO         0x008040FF
#define CINZA_ESCURO            0x626262FF
#define COR_ERRO              0xFF0000DD
#define COR_BRANCO           0xFFFFFFAA
#define COR_ADM               0x007FFFAA
#define COR_AV                   0x00EA00FF
enum bCarros
{
    
Modelo,
    
Float:bX,
    
Float:bY,
    
Float:bZ,
    
Float:Angulo,
    
Cor1,
    
Cor2,
    
bool:JaTemCarro,
    
IdAtualPasta,
    
IdCarDono
}
new 
ConceDados[MAX_PLAYERS][bCarros];
//new String[60];
new CarroEscolhendo[MAX_PLAYERS] = 400;
new 
bool:ComprandoCarro[MAX_PLAYERS];
#if defined FILTERSCRIPT
new Float:Pos[3];
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
"Carrregado com sucesso!");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    
DOF2_Exit();
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Blank Gamemode by your name here");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
ComprandoCarro[playerid] = false;
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
ComprandoCarro[playerid] = false;
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
CMD:v(playerid)
{
    if(
CarroEscolhendo[playerid] > 611)
    {
       
CarroEscolhendo[playerid] = 400;
    }
    if(
CarroEscolhendo[playerid] < 400)
    {
       
CarroEscolhendo[playerid] = 611;
    }
    new 
CarroCriado[MAX_PLAYERS];
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    
DestroyVehicle(CarroCriado[playerid]);
    
CarroCriado[playerid] = CreateVehicle(CarroEscolhendo[playerid], XYZ0.000, -1);
    
PutPlayerInVehicle(playeridCarroCriado[playerid], 0);
    
ComprandoCarro[playerid] = true;
    return 
1;
}
CMD:comprar(playerid)
{
    new 
String1[50], String2[50], String3[50];
    if(
ComprandoCarro[playerid] == false) return SendClientMessage(playeridAZUL_CLARO"Vocк nгo esta na concessionaria!!!");
    if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playeridVermelho"Vocк nгo estб em um  veiculo!");
    
format(String1sizeof(String1), IdAtual);
    if(!
DOF2_FileExists(String1))
    {
       
DOF2_CreateFile(String1);
       
DOF2_SetInt(String1"IdAtual"1);
       
DOF2_SaveFile();
    }
    
format(String2sizeof(String2), CaminhoPastaDonosNome(playerid));
    if(!
DOF2_FileExists(String2))
    {
       
DOF2_CreateFile(String2);
       
DOF2_SetBool(String2"JaTemCarro"true);
       
ConceDados[playerid][IdCarDono] = DOF2_GetInt(String1"IdAtual");
       
DOF2_SetInt(String1"IdAtual"ConceDados[playerid][IdCarDono]+1);
       
ConceDados[playerid][IdCarDono] = DOF2_GetInt(String1"IdAtual");
       
DOF2_SaveFile();
    }
    
format(String3sizeof(String3), CaminhoPastaCarrosConceDados[playerid][IdCarDono]);
    new 
VehicleID GetPlayerVehicleID(playerid);
    
GetVehiclePos(VehicleIDPos[0], Pos[1], Pos[2]);
    new 
Float:Angle;
    if(!
DOF2_FileExists(String3))
    {
        
DOF2_CreateFile(String2);
        
DOF2_SetInt(String3"Modelo"CarroEscolhendo[playerid]);
        
DOF2_SetInt(String3"bX"Pos[0]);
        
DOF2_SetInt(String3"bY"Pos[1]);
        
DOF2_SetInt(String3"bZ"Pos[2]);//Angulo
        
DOF2_SetInt(String3"Angulo"GetVehicleZAngle(VehicleIDAngle));
        
DOF2_SetInt(String3"Cor1"0);
        
DOF2_SetInt(String3"Cor2"0);
    }
    return 
1;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
    return 
1;
}
public 
OnPlayerLeaveCheckpoint(playerid)
{
    return 
1;
}
public 
OnPlayerEnterRaceCheckpoint(playerid)
{
    return 
1;
}
public 
OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 
1;
}
public 
OnRconCommand(cmd[])
{
    return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
    return 
1;
}
public 
OnObjectMoved(objectid)
{
    return 
1;
}
public 
OnPlayerObjectMoved(playeridobjectid)
{
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    return 
1;
}
public 
OnVehicleMod(playeridvehicleidcomponentid)
{
    return 
1;
}
public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
    return 
1;
}
public 
OnVehicleRespray(playeridvehicleidcolor1color2)
{
    return 
1;
}
public 
OnPlayerSelectedMenuRow(playeridrow)
{
    return 
1;
}
public 
OnPlayerExitedMenu(playerid)
{
    return 
1;
}
public 
OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if(
ComprandoCarro[playerid] == true)
    {
       if(
newkeys == KEY_ANALOG_LEFT)
       {
          
CarroEscolhendo[playerid] --;
          
cmd_v(playerid);
       }
       if(
newkeys == KEY_ANALOG_RIGHT)
       {
          
CarroEscolhendo[playerid] ++;
          
cmd_v(playerid);
       }
    }
    return 
1;
}
public 
OnRconLoginAttempt(ip[], password[], success)
{
    return 
1;
}
public 
OnPlayerUpdate(playerid)
{
    return 
1;
}
public 
OnPlayerStreamIn(playeridforplayerid)
{
    return 
1;
}
public 
OnPlayerStreamOut(playeridforplayerid)
{
    return 
1;
}
public 
OnVehicleStreamIn(vehicleidforplayerid)
{
    return 
1;
}
public 
OnVehicleStreamOut(vehicleidforplayerid)
{
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    return 
1;
}
public 
OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    return 
1;
}
stock Nome(playerid)
{
    new 
pNome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNome24);
    
    return 
pNome;

Linhas:
PHP код:
        DOF2_SetInt(String3"bX"Pos[0]); 
        
DOF2_SetInt(String3"bY"Pos[1]); 
        
DOF2_SetInt(String3"bZ"Pos[2]);//Angulo 
Por desse warning, por favor ajudem fico agradecido...
Reply
#2

Nao passa a porra do GM inteiro, so passa as linhas, bem capaz que eu vo ficar contar tantas linhas -.-
Reply
#3

isso й um GM fio? meldels vc sabe bastante em pawn em ...

@topic up n entendi os warnings
Reply
#4

pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <dof2>

#define CaminhoPastaCarros "Concessionaria/TodosOscarros/%d.txt"
#define CaminhoPastaDonos  "Concessionaria/DonosCarros/%s.txt"
#define IdAtual            "Concessionaria/IDVeiculoAtual.txt"

#define Verde                0x00FF00FF
#define Vermelho             0xFF0000AA
#define Azul                 0x0000FFAA
#define Marron               0x804000AA
#define Branco               0xFFFFFFAA
#define Laranja              0xFF8000AA
#define Azul_Marinho         0x80FFFFAA
#define Cinza                0xC0C0C0AA
#define Rosa                 0xFF80FFAA
#define AZUL_CLARO           0x80BFFFAA
#define Verde_Escuro         0x007138AA
#define Amarelo              0xFFFF00AA
#define Roxo                 0x9F009FAA
#define VERDE_AGUA           0x03D687FF
#define CINZA_ESCURO            0x626262FF
#define VERDE                0x21DD00FF
#define VERMELHO_CLARO       0xFB0000FF
#define VERDE_CLARO          0x38FF06FF
#define ROSA_CHOQUE          0xE100E1FF
#define VERDE_ESCURO         0x008040FF
#define CINZA_ESCURO            0x626262FF
#define COR_ERRO              0xFF0000DD
#define COR_BRANCO           0xFFFFFFAA
#define COR_ADM               0x007FFFAA
#define COR_AV                   0x00EA00FF

enum bCarros
{
    Modelo,
    Float:bX,
    Float:bY,
    Float:bZ,
    Float:Angulo,
    Cor1,
    Cor2,
    bool:JaTemCarro,
    IdAtualPasta,
    IdCarDono
}

new ConceDados[MAX_PLAYERS][bCarros];
//new String[60];
new CarroEscolhendo[MAX_PLAYERS] = 400;
new bool:ComprandoCarro[MAX_PLAYERS];
#if defined FILTERSCRIPT
new Float:Pos[3];
public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Sistema de concessionбria Feito por Bruno Alves");
    print("Carrregado com sucesso!");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    DOF2_Exit();
    return 1;
}

#else

main()
{
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
}

public OnPlayerConnect(playerid)
{
    ComprandoCarro[playerid] = false;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    ComprandoCarro[playerid] = false;
    return 1;
}

public OnPlayerSpawn(playerid)
{
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return 1;
}

public OnVehicleSpawn(vehicleid)
{
    return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return 1;
}

public OnPlayerText(playerid, text[])
{
    return 1;
}


CMD:v(playerid)
{
    if(CarroEscolhendo[playerid] > 611)
    {
       CarroEscolhendo[playerid] = 400;
    }
    if(CarroEscolhendo[playerid] < 400)
    {
       CarroEscolhendo[playerid] = 611;
    }
    new CarroCriado[MAX_PLAYERS];
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    DestroyVehicle(CarroCriado[playerid]);
    CarroCriado[playerid] = CreateVehicle(CarroEscolhendo[playerid], X, Y, Z, 0.0, 0, 0, -1);
    PutPlayerInVehicle(playerid, CarroCriado[playerid], 0);
    ComprandoCarro[playerid] = true;
    return 1;
}

CMD:comprar(playerid)
{
    new String1[50], String2[50], String3[50];
    if(ComprandoCarro[playerid] == false) return SendClientMessage(playerid, AZUL_CLARO, "Vocк nгo esta na concessionaria!!!");
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Vermelho, "Vocк nгo estб em um  veiculo!");
    format(String1, sizeof(String1), IdAtual);
    if(!DOF2_FileExists(String1))
    {
       DOF2_CreateFile(String1);
       DOF2_SetInt(String1, "IdAtual", 1);
       DOF2_SaveFile();
    }
    format(String2, sizeof(String2), CaminhoPastaDonos, Nome(playerid));
    if(!DOF2_FileExists(String2))
    {
       DOF2_CreateFile(String2);
       DOF2_SetBool(String2, "JaTemCarro", true);
       ConceDados[playerid][IdCarDono] = DOF2_GetInt(String1, "IdAtual");
       DOF2_SetInt(String1, "IdAtual", ConceDados[playerid][IdCarDono]+1);
       ConceDados[playerid][IdCarDono] = DOF2_GetInt(String1, "IdAtual");
       DOF2_SaveFile();
    }
    format(String3, sizeof(String3), CaminhoPastaCarros, ConceDados[playerid][IdCarDono]);
    new VehicleID = GetPlayerVehicleID(playerid);
    GetVehiclePos(VehicleID, Pos[0], Pos[1], Pos[2]);
    new Float:Angle;
    if(!DOF2_FileExists(String3))
    {
        DOF2_CreateFile(String2);
        DOF2_SetInt(String3, "Modelo", CarroEscolhendo[playerid]);
        DOF2_SetFloat(String3, "bX", Pos[0]);
        DOF2_SetFloat(String3, "bY", Pos[1]);
        DOF2_SetFloat(String3, "bZ", Pos[2]);//Angulo
        DOF2_SetFloat(String3, "Angulo", GetVehicleZAngle(VehicleID, Angle));
        DOF2_SetInt(String3, "Cor1", 0);
        DOF2_SetInt(String3, "Cor2", 0);
    }
    return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 1;
}

public OnRconCommand(cmd[])
{
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    return 1;
}

public OnObjectMoved(objectid)
{
    return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return 1;
}

public OnPlayerExitedMenu(playerid)
{
    return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(ComprandoCarro[playerid] == true)
    {
       if(newkeys == KEY_ANALOG_LEFT)
       {
          CarroEscolhendo[playerid] --;
          cmd_v(playerid);
       }
       if(newkeys == KEY_ANALOG_RIGHT)
       {
          CarroEscolhendo[playerid] ++;
          cmd_v(playerid);
       }
    }
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return 1;
}

public OnPlayerUpdate(playerid)
{
    return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return 1;
}

stock Nome(playerid)
{
    new pNome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pNome, 24);
     
    return pNome;
}
Reply
#5

Quote:
Originally Posted by Jay_McReary
Посмотреть сообщение
Nao passa a porra do GM inteiro, so passa as linhas, bem capaz que eu vo ficar contar tantas linhas -.-
@kkk GM euri
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)