SA-MP Forums Archive
car plate. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car plate. (/showthread.php?tid=203565)



car plate. - Mr.Jvxmc - 27.12.2010

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 ?


Re: car plate. - Rac3r - 27.12.2010

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


Re: car plate. - GaGlets(R) - 27.12.2010

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.


Re: car plate. - jameskmonger - 27.12.2010

Try just "SAMP COM".


Re: car plate. - IstuntmanI - 27.12.2010

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");
    }
}



Re: car plate. - leong124 - 27.12.2010

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.


Re: car plate. - DVDK - 27.12.2010

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