Help error....
#1

pawn Код:
D:\Jocuri\SAMP\sp edit\gamemodes\rpg.pwn(8999) : error 017: undefined symbol "IsValidVehicle"
D:\Jocuri\SAMP\sp edit\gamemodes\rpg.pwn(9451) : warning 204: symbol is assigned a value that is never used: "paperboy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
this is code:
pawn Код:
for(new veh = 1; veh < MAX_VEHICLES; veh++)
{
    if(IsValidVehicle(veh))
    {
    SetVehicleParamsEx(veh,false,false,false,false,false,false,false);
    }
}
Reply
#2

Did you make the callback IsValidVehicle and did you forward it?
Reply
#3

pawn Код:
//OnTop but under the include a_samp
native IsValidVehicle(vehicleid);
Reply
#4

pawn Код:
#include <a_samp>

native IsValidVehicle(vehicleid);

// somewhere
for(new veh = 1; veh < MAX_VEHICLES; veh++)
{
    if(IsValidVehicle(veh))
    {
        SetVehicleParamsEx(veh,false,false,false,false,false,false,false);
    }
}
About "paperboy", you've set a value to it but you actually never use it. Use it somewhere or just delete it.
Reply
#5

Quote:
Originally Posted by Dwane
Посмотреть сообщение
pawn Код:
#include <a_samp>

native IsValidVehicle(vehicleid);

// somewhere
for(new veh = 1; veh < MAX_VEHICLES; veh++)
{
    if(IsValidVehicle(veh))
    {
        SetVehicleParamsEx(veh,false,false,false,false,false,false,false);
    }
}
About "paperboy", you've set a value to it but you actually never use it. Use it somewhere or just delete it.
Thx

EDIT: I still can not get into cars from factions ... How do I resolve this?
Reply
#6

Quote:
Originally Posted by Gaby29
Посмотреть сообщение
EDIT: I still can not get into cars from factions ... How do I resolve this?
What do you mean? What do you want to do?

What the above code does is to loop through almost all the vehicles (it should start from 0, not 1) and if the vehicle is created then its will set the vehicle's parameters to false.
Reply
#7

Quote:
Originally Posted by Dwane
Посмотреть сообщение
What do you mean? What do you want to do?

What the above code does is to loop through almost all the vehicles (it should start from 0, not 1) and if the vehicle is created then its will set the vehicle's parameters to false.
I can not get in the car and so I gave that code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)