Sinple error with Number Plate
#1

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
Reply
#2

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)

Reply
#3

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
Reply
#4

I get that to but it still works. If anyone can figure out why that would be cool
Reply
#5

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;
}
Reply
#6

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! (
Reply
#7

I would prefer adding nameplate in mta lol!
Reply
#8

I have already more than 500 Vehicles
Reply
#9

Help meee
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)