car plate.
#1

about that, i add under
pawn Code:
public OnGameModeInit()
pawn Code:
for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "WWW.SA-MP.COM");
SetVehicleToRespawn(i);
}
i respawn all cars, but nothin'
what is the prob ?
Reply
#2

The problem is, you haven't searched this forum or even checked the wiki page which tells you you have to SetehicleToRespawn for it to work.

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
Reply
#3

Quote:
Originally Posted by Rac3r
View Post
The problem is, you haven't searched this forum or even checked the wiki page which tells you you have to SetehicleToRespawn for it to work.

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
Idiot.. Read the code.. .

ON topic:
Use after created vehicles and try to use about 8 chars.
Reply
#4

Try just "SAMP COM".
Reply
#5

After you created the vehicles use only.
Code:
for(new i=1; i<MAX_VEHICLES; i++)
{
    SetVehicleNumberPlate(i, "WWW.SA-MP.COM");
}
and will be something like this:
Code:
public OnGameModeInit()
{
    //stuff
    //stuff
    //......
    //vehicles - AddStaticVehicle(Ex), CreateVehicle
    for(new i=1; i<MAX_VEHICLES; i++)
    {
        SetVehicleNumberPlate(i, "WWW.SA-MP.COM");
    }
}
Reply
#6

The length isn't the problem.
It's okay within 32 characters(the only problem of using >8 characters is you can't see the full string)
Try to change the number plates after adding the vehicles.
Reply
#7

You have to make that loop AFTER all vehicles where created!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)