Sinple error with Number 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)
+--- Thread: Sinple error with Number Plate (
/showthread.php?tid=324577)
Sinple error with Number Plate -
[sFx]BlueSmoke - 10.03.2012
I added this under OnGameModeInit
Код:
SetAllVehicleNumberPlate("KOS");
And i have this error:
Код:
D:\server\King Of Stunt\gamemodes\KoS.pwn(937) : error 017: undefined symbol "SetAllVehicleNumberPlate"
What is BAD!? PS: Sorry for bad english
Re: Sinple error with Number Plate -
SnG.Scot_MisCuDI - 10.03.2012
pawn Код:
for(new Vehicles = 0; Vehicles < MAX_VEHICLES; Vehicles++)
{
new string[30];
for(new Vehicles = 0; Vehicles < MAX_VEHICLES; Vehicles++)
format(string, sizeof(string),"KOS", Vehicles);
SetVehicleNumberPlate(Vehicles,string);
}
}}
Quote:
Note: This function has no error checking. Do not assign custom number plates to vehicles without plates (boats etc) as this will result in some unneeded processing time on the client
Note: The vehicle must be respawned or restreamed for the changes to take effect.
Note: There's a limit of 32 characters on each NumberPlate.
Note: This function only works in versions 0.2.1, 0.2.2, 0.2x and 0.3c (and beyond)
|
Re: Sinple error with Number Plate -
[sFx]BlueSmoke - 10.03.2012
I added on gamemodeinit
and i have this error
Код:
D:\server\King Of Stunt\gamemodes\KoS.pwn(940) : warning 219: local variable "Vehicles" shadows a variable at a preceding level
Re: Sinple error with Number Plate -
SnG.Scot_MisCuDI - 10.03.2012
I get that to but it still works. If anyone can figure out why that would be cool
Re: Sinple error with Number Plate -
eesh - 10.03.2012
use your old code and put this in the end.
pawn Код:
stock SetAllVehicleNumberPlate(platename[])
{
for(new i;i<MAX_VEHICLES;i++)
{
SetVehicleNumberPlate(i,platename);
}
return 1;
}
Re: Sinple error with Number Plate -
[sFx]BlueSmoke - 10.03.2012
eesh, At compile I don't have any error/warning...but in game all vehicles have random code at the license plate

(
2 Words: Don't WORK!

(
Re: Sinple error with Number Plate -
Faisal_khan - 10.03.2012
I would prefer adding nameplate in mta lol!
Re: Sinple error with Number Plate -
[sFx]BlueSmoke - 10.03.2012
I have already more than 500 Vehicles
Re: Sinple error with Number Plate -
[sFx]BlueSmoke - 10.03.2012
Help meee