Help me guys ty.
#1

I have this error with this script guys:
PHP код:
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(270) : error 017undefined symbol "vehid"
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(271) : error 017undefined symbol "idveicolo"
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(276) : error 017undefined symbol "idveicolo"
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(268) : warning 203symbol is never used"veicoliid"
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(436) : warning 203symbol is never used"aIdveicolo"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Errors


Script:
PHP код:
//Veicoli
new aIdveicolo[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"}
}; 
2 script
PHP код:
CMD:veicoli(playeridparams[])
{
    new 
veicoliid;
    
    if(
sscanf(params"i"vehid)) SendClientMessage(playerid, -1"SINTASSI: /veicoli <idveicolo>");
    else if (
idveicolo 400 || idveicolo 611SendClientMessage(playerid, -1"[Errore] gli id veicolo sono da 400 a 611!");
    else
    {
            new 
Float:xFloat:yFloat:z;
            
GetPlayerPos(playeridxyz);
            
CreateVehicle(idveicolo3yz00,0, -1);
            
SendClientMessage(playerid, -1"Il tuo veicolo и spawnato!");
    }
    return 
1;

Reply
#2

Replace your "new veicoliid;" with this
Код:
new veicoliid, vehid, idveicolo;
and as for the other 2 errors. It's because you never used them. You did define them, but you never used them.
Reply
#3

I have this 3 error now
PHP код:
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(268) : warning 203symbol is never used"idveicolo"
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(268) : warning 203symbol is never used"veicoliid"
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(435) : warning 203symbol is never used"aVehid"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


3 Warnings

Reply
#4

You're creating "veicoliid", but you're using "vehid" in sscanf.
And then in the if statement, you're using "idveicolo"
Reply
#5

I resolved 2 error, now i have only 1 error
PHP код:
C:\Users\Kevin11\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(435) : warning 203symbol is never used"aVeicoliid"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


1 Warning

Reply
#6

Код:
CMD:veicoli(playerid, params[]) 
{ 
    if(sscanf(params, "i", params[0])) SendClientMessage(playerid, -1, "SINTASSI: /veicoli <idveicolo>"); 
    if(params[0] < 400 || params[0] > 611) SendClientMessage(playerid, -1, "[Errore] gli id veicolo sono da 400 a 611!"); 
    new Float:fP[3]; 
    GetPlayerPos(playerid, fP[0], fP[1], fP[2]); 
    CreateVehicle(params[0], fP[0], fP[1], fP[2] + 5, 0, 0,0, -1); 
    SendClientMessage(playerid, -1, "Il tuo veicolo и spawnato!"); 
    return 1; 
}
Reply
#7

PHP код:
new aIdVeicoli[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"}
}; 
Error
PHP код:
C:\Users\Eclipse\Desktop\Freeroam da 0\gamemodes\Freeroam.pwn(431) : warning 203symbol is never used"aIdVeicoli"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


1 Warning

Reply
#8

It's not an error, you just didn't use the array.
Reply
#9

How do you solve?
Reply
#10

It's not an error, you can either delete the array, or you can use this:
Код:
new stock aIdVeicoli[212][]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)