[AJUDA]Erro Ao Compilar
#1

C:\Users\LuanFruzzoni\Desktop\Brasil Ultra Force\gamemodes\OWMASTER.pwn(7) : error 017: undefined symbol "MAX_PLAYERS"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


=/ Auguem pode me ajudar por que estб Dando esse Erro ?
Reply
#2

Coloca no topo:

pawn Код:
#include             <a_samp>
Reply
#3

Poste a linha do Cуdigo ou ele completo
Reply
#4

Quote:
Originally Posted by Los
Посмотреть сообщение
Coloca no topo:

pawn Код:
#include             <a_samp>




Vlw Funcionou Agora quando eu entro no Carro que eu Entro da Erro diz que o carro й meu e eu nao posso dirigilo :O

como eu boto para todos usarem os carros O Cуdigo do Arquivo logo a baixo Obs os Crйditos serб postado no game mode quando ele estiver pronto !!
Reply
#5

PHP код:
#include <a_samp>
new
    
vModel,
    
Float:ppos[3],
    
Text3D:TextVeH,
    
VeiculoID[MAX_PLAYERS],
    
gstring[256]
;
new 
Veiculos[212][] =
{
    {
"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},{"Firetruck"},{"Trashmaster"},
    {
"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},{"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},
    {
"Esperanto"},{"Taxi"},{"Washington"},{"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},
    {
"Securicar"},{"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},{"Coach"},
    {
"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},{"Admiral"},{"Squalo"},{"Seasparrow"},
    {
"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},{"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},
    {
"Berkley's RC Van"},{"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
    {
"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},{"Rustler"},{"ZR-350"},{"Walton"},
    {
"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},{"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},
    {
"FBI Rancher"},{"Virgo"},{"Greenwood"},{"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},
    {
"Benson"},{"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},{"Super GT"},
    {
"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},{"Tanker"},{"Roadtrain"},{"Nebula"},
    {
"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},{"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},
    {
"Cadrona"},{"FBI Truck"},{"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},{"Blade"},
    {
"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},{"Firetruck LA"},{"Hustler"},{"Intruder"},
    {
"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},{"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},
    {
"Uranus"},{"Jester"},{"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},{"Bandito"},
    {
"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},{"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},
    {
"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},{"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},
    {
"Freight Carriage"},{"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
    {
"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},{"Sadler"},
    {
"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},{"Utility Trailer"}
};
new 
mensagem[][] =
{
  
"Seja Bem vindo a um Veiculo"
};
new 
cor [] =
{
  
0xFF5A00FF//Laranja
  
0xF50000FF//Vermelho
  
0xF50000FF//Ciano
  
0x91FF00FF//Verde Limгo
  
0xFF0091FF//Rosa
  
0x009000FF//Verde Puro
  
0x9600FFFF,
  
0x004080AA,
  
0x804040AA,
  
0x57249BAA,
};
//Vai Ser As Cores Da Mensagem
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Game Mode Carregado com Sucesso ! Criado Por Luan Fruzzoni");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
main()
{
    print(
"\n----------------------------------");
    print(
" Game Mode Desligado com Sucesso ! Criado Por Luan Fruzzoni");
    print(
"----------------------------------\n");
}
public 
OnGameModeInit()
{
    
SetGameModeText("FRUZZONI BASE");
    
AddPlayerClass(0,1552.2809,-1675.4078,16.1953,93.1332,24,999,0,0,0,0);
    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)
{
    
VeiculoID[playerid] = -1;
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    
DestroyVehicle(VeiculoID[playerid]);
    
VeiculoID[playerid] = -1;
    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;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
       new
        
cmd[128], idxtmp[128];
    
cmd strtok(cmdtextidx);
    
GetPlayerPos(playeridppos[0], ppos[1], ppos[2]);
    if(
strcmp(cmd"/veh"true) == || strcmp(cmd"/criarveiculo"true) == 0)
    {
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Uso correto: /veh [id veнculo] [cor1] [cor2]");
            return 
1;
        }
        new
            
veiculo strval(tmp);
        if(
veiculo 400 || veiculo 611)
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Somente veнculos entre os ID: 400 б 611");
            return 
1;
        }
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Uso correto: /veh [id veнculo] [cor1] [cor2]");
            return 
1;
        }
        new
            
color1 strval(tmp);
        
tmp strtok(cmdtextidx);
        new
            
color2 strval(tmp);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Uso correto: /veh [id veнculo] [cor1] [cor2]");
            return 
1;
        }
        
DestroyVehicle(VeiculoID[playerid]);
        
vModel CreateVehicle(veiculoppos[0], ppos[1], ppos[2], 360color1color2, -1);
        
PutPlayerInVehicle(playeridvModel0);
        
VeiculoID[playerid] = GetPlayerVehicleID(playerid);
        
format(gstringsizeof(gstring), "| INFO | %s id: %d cor1 %d e cor2 %d criado com sucesso!"Veiculos[GetVehicleModel(vModel)-400], veiculocolor1color2);
        
SendClientMessage(playerid0xFFFF33AAgstring);
        
format(gstring256"{FFFF33}Veнculo de {FFFFCC}%s {FFFF33}id {FFFFCC}%d"PlayerName(playerid), playerid);
        
TextVeH Create3DTextLabel(gstring, -10.00.00.050.001);
        
Attach3DTextLabelToVehicle(TextVeHvModel0.00.00.0+1);
        return 
1;
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    new 
random3 random(sizeof(cor));
    new 
randMSG1 random(sizeof(mensagem));
    
SendClientMessage(playerid,cor[random3], mensagem[randMSG1]);
    return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
IsPlayerInAnyVehicle(playerid))
    {
        if(
GetPlayerVehicleID(playerid) == VeiculoID[playerid])
        {
            
format(gstringsizeof(gstring),"| INFO | %s seja bem vindo ao seu veнculo criado por vocк."PlayerName(playerid));
            
SendClientMessage(playerid0x9966FFAAgstring);
            return 
1;
        }
        else if(
GetPlayerVehicleID(playerid) != VeiculoID[playerid])
        {
            
format(gstringsizeof(gstring), "| ERRO | Esse veнculo pertence а %s e vocк nгo pode dirigi-lo! {99FF66}( Crie o seu usando: /Veh )"PlayerName(VeiculoID[playerid]));
            
SendClientMessage(playerid0xFF6633AAgstring);
            
PlayerPlaySound(playerid11470.00.00.0);
            
RemovePlayerFromVehicle(playerid);
            return 
1;
        }
    }
    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)
{
    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 strtok(const string[], &index)
{
    new 
length strlen(string);
    while ((
index length) && (string[index] <= ' '))
    {
        
index++;
    }
    new 
offset index;
    new 
result[20];
    while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
    {
        
result[index offset] = string[index];
        
index++;
    }
    
result[index offset] = EOS;
    return 
result;
}
stock GetVehicleModelID(nome[])
{
    for(new 
0211; ++i)
    {
        if(
strfind(Veiculos[i], nometrue) != -1) return 400;
    }
    return -
1;
}
stock PlayerName(playerid)
{
    new
        
PvName[MAX_PLAYER_NAME+1]
    ;
    
GetPlayerName(playeridPvNamesizeof(PvName));
    return 
PvName;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)