13.08.2015, 22:50
You have to do it like this:
The functions have to be between the both brackets ( { and } ).
PHP код:
public OnGameModeInit()
{
CreateObject(983, 621.79999, -599.09998, 16.9, 0, 0, 92);
CreateObject(983, 621.79999, -603.79999, 16.9, 0, 0, 270);
CreateObject(983, 621.79999, -594.40002, 16.9, 0, 0, 270);
CreateObject(4640, 652.29999, -590, 17, 0, 0, 0);
CreateObject(970, 656.29999, -590.09998, 15.9, 0, 0, 0);
CreateObject(970, 660.5, -590.09998, 15.9, 0, 0, 0);
CreateObject(970, 664.79999, -590.09998, 15.9, 0, 0, 0);
CreateObject(970, 669.09998, -590, 15.9, 0, 0, 0);
CreateObject(970, 659.5, -577.70001, 15.9, 0, 0, 0);
CreateObject(970, 655.29999, -577.70001, 15.9, 0, 0, 0);
CreateObject(970, 653, -579.79999, 15.9, 0, 0, 26;
CreateObject(970, 653.09998, -587.70001, 15.9, 0, 0, 270);
CreateObject(970, 858.79999, -579.79999, 17.8, 0, 0, 272);
CreateObject(970, 854.09998, -579.70001, 17.8, 0, 0, 26;
CreateObject(970, 863, -579.90002, 17.8, 0, 0, 90);
CreateObject(970, 822.79999, -611, 15.9, 0, 0, 272);
CreateObject(970, 824.90002, -608.79999, 15.9, 0, 0, 0);
CreateObject(970, 827.20001, -611, 15.9, 0, 0, 274);
CreateObject(970, 781.29999, -615.59998, 15.9, 0, 0, 0);
CreateObject(970, 834.79999, -615.09998, 15.9, 0, 0, 0);
CreateObject(970, 800.79999, -607.40002, 15.9, 0, 0, 90);
CreateObject(970, 800.79999, -611.59998, 15.9, 0, 0, 270);
CreateObject(970, 816.59998, -611.20001, 15.9, 0, 0, 272);
CreateObject(970, 816.29999, -606.90002, 15.9, 0, 0, 90);
CreateObject(970, 787.5, -611.5, 15.9, 0, 0, 86);
CreateObject(970, 787.70001, -607.29999, 15.9, 0, 0, 8;
CreateObject(2114, 2274.1001, -86, 25.6, 0, 0, 0);
CreateObject(3496, 2266.2, -81.7, 25.5, 0, 0, 246);
CreateObject(3496, 2281.8999, -89.3, 25.5, 0, 0, 4;
CreateObject(983, 1217.6, 308.79999, 19.3, 0, 0, 336);
CreateObject(983, 1215, 302.89999, 19.2, 0, 0, 33;
CreateObject(983, 1212.7, 296.89999, 19.2, 0, 0, 33;
CreateObject(983, 1226.3, 287.89999, 19.2, 0, 0, 66);
CreateObject(983, 1214.5, 292.70001, 19.2, 0, 0, 6;
CreateObject(12950, 1228, 298, 20.7, 0, 0, 336);
CreateObject(1757, 1249.1, 321.29999, 23.8, 0, 0, 0);
CreateObject(2762, 1250.8, 316.39999, 24.2, 0, 0, 0);
CreateObject(2595, 1250.9, 316.39999, 25, 0, 0, 10;
CreateObject(984, 1241.6, 341.29999, 19.2, 0, 0, 66);
CreateObject(984, 1253.3, 336.10001, 19.2, 0, 0, 66);
CreateObject(984, 1265, 330.89999, 19.2, 0, 0, 66);
CreateObject(970, 198.60001, 1920.7, 17.2, 0, 0, 8;
CreateObject(970, 207, 1921, 17.2, 0, 0, 96);
CreateObject(970, 216.2, 1921.1, 17.2, 0, 0, 94);
return 1;
}