09.06.2013, 18:47
(
Последний раз редактировалось Rad012; 10.06.2013 в 12:08.
)
Hello people, I have a problem. Race_PlayerJoin and Race_Start is not invoked.
Code here:
Sorry for my bad english Please correct me...
Code here:
Код:
#include <YSI\y_races> new Race; // in OnGamemodeInit Race = Race_Create(0, 0, 3,false,true, 0, 0, 1, false); Race_AddStart(Race, 717.0488, -1611.6349, 4.7054, 180.0); Race_AddStart(Race, 717.1332, -1618.6022, 4.7054, 180.0); Race_AddStart(Race, 716.9015, -1625.3879, 4.7054, 180.0); Race_AddStart(Race, 716.8955, -1632.3840, 4.7054, 180.0); Race_AddStart(Race, 716.6994, -1639.0220, 4.7054, 180.0); Race_AddStart(Race, 731.6158, -1618.7365, 4.7054, 180.0); Race_AddStart(Race, 731.2214, -1624.8910, 4.7054, 180.0); Race_AddStart(Race, 731.2477, -1631.4142, 4.7054, 180.0); Race_AddStart(Race, 731.0253, -1637.6185, 4.7054, 180.0); Race_AddCheckpoint(Race, 724.63,-1863.15,4.80); Race_AddCheckpoint(Race, 717.11,-2421.28,4.80); Race_AddCheckpoint(Race, 1027.72,-2663.08,4.80); Race_AddCheckpoint(Race, 1132.17,-2666.16,4.80); Race_AddCheckpoint(Race, 1226.79,-2933.70,4.80); Race_AddCheckpoint(Race, 1300.60,-2999.41,4.80); Race_AddCheckpoint(Race, 1602.29,-2948.36,4.80); Race_AddCheckpoint(Race, 1723.72,-2900.01,4.80); Race_AddCheckpoint(Race, 1933.14,-3039.19,4.80); Race_AddCheckpoint(Race, 2005.69,-3057.83,4.80); Race_AddCheckpoint(Race, 2135.4229,-2894.3931,4.80); //call in commands COMMAND:joinrace(playerid, params[]) { Race_PlayerJoin(playerid, Race); return 1; } COMMAND:start(playerid, params[]) { Race_Start(Race); return 1; }