I need help with my script.
#1

Quote:

C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(1362) : error 010: invalid function or declaration
C:\Users\JACOLA03\Desktop\cops and robbers\gamemodes\1.1.1.pwn(1364) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

this is what im have on public OnGameModeInit() look at the red text:
Quote:

//Special Cars (House cars/Reg/Admins)
AdminCar1 = AddStaticVehicle(560,969.6414,-760.4233,111.0436,278.1985,41,29); // Admin Sultan
AdminCar2 = AddStaticVehicle(522,962.8135,-764.6016,109.7994,275.8972,3,; // Admin NRG
House4Car1 = AddStaticVehicle(411,172.0054,-1340.0504,69.4026,356.1563,6,6); // House4car
House4Car2 = AddStaticVehicle(536,166.2974,-1340.4438,69.4719,358.9040,9,1); // House4Car
House6Car1 = AddStaticVehicle(560,979.3285,-830.7790,95.3591,207.9206,21,1); // house6 car
House7Car1 = AddStaticVehicle(445,1088.6074,-641.3738,113.0374,271.2308,39,39); // House 7 car


for(new v =0; v<MAX_VEHICLES; v ++)
{
//VehicleInfo[v][bought] = 999;
VehicleInfo[v][bomb] = 0;
}

}

pickup_Cash = CreatePickup(1274, 2, 0.0, 0.0, 9.0);
pickup_Health = CreatePickup(1240, 2, 0.0, 0.0, 9.0);
return 1;
}

Reply
#2

Did write your own pick_Cash and Health function if you did you probably didn't public it, or its from an include? Are you sure you included the include?
Reply
#3

Just add those two lines that you create the pickups INSIDE OnGameModeInit so remove that closed bracket (the red one above pickup_Cash) because it ends the callback so the rest are just invalid.
Reply
#4

Код:
}

}
Remove one
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)