20.08.2009, 20:55
Hi there. Well, I have a problem with my script, as usual, :P.
The problem is most likely here:
http://pawn.pastebin.com/m6eb4fe05
And here's my OnGameModeInit and new's.
Any ideas?
The problem is most likely here:
http://pawn.pastebin.com/m6eb4fe05
And here's my OnGameModeInit and new's.
pawn Код:
new driverschoolenter,driverschoolexit,DMVMenupickup;
new Bcar1,Bcar2,Bcar3,Bcar4;
new Acar1,Acar2;
new gDriversLicenseType[MAX_PLAYERS];
new gLicensegiven[MAX_PLAYERS];
new Menu:DMVMenu;
new Menu:DMVPMenu;
new gInDMV[MAX_PLAYERS];
new gDMVOnDuty[MAX_PLAYERS];
public OnGameModeInit()
{
DMVMenu = CreateMenu("The DMV", 1, 300.0, 100.0, 300.0);
AddMenuItem(DMVMenu,0,"Request a B-class DMV licensor");
AddMenuItem(DMVMenu,0,"Request an A-class DMV licensor");
DMVPMenu = CreateMenu("DMV Locker", 1, 300.0, 100.0, 300.0);
AddMenuItem(DMVPMenu,0,"Go on/off duty");
AddMenuItem(DMVPMenu,0,"Change uniform");
Bcar1 = AddStaticVehicleEx(405,342.8414,-1350.3776,14.3828,118.4376,11,11,300);
Bcar2 = AddStaticVehicleEx(405,329.2794,-1343.3014,14.3922,208.0797,11,11,300);
Bcar3 = AddStaticVehicleEx(405,337.5486,-1340.6707,14.3828,117.9454,11,11,300);
Bcar4 = AddStaticVehicleEx(405,340.0934,-1345.5746,14.3828,118.5098,11,11,300);
Acar1 = AddStaticVehicleEx(475,345.4035,-1355.3492,14.3105,118.3625,11,11,300);
Acar2 = AddStaticVehicleEx(475,341.7986,-1337.3308,14.3141,209.9554,11,11,300);
driverschoolenter = CreatePickup(1239,23,337.5643,-1370.2089,14.3267);
driverschoolexit = CreatePickup(1239,23,-2029.798339,-106.675910,1035.171875);
DMVMenupickup = CreatePickup(1239,23,-2034.7899,-115.3649,1035.1719);
return 1;
}