25.05.2009, 16:32
So this was my previous script.. which i guess used to crash server everytime i gmx..
under public OnGameModeInt()
under public OnVehicleSpawn
under public TuneVehicle
Which i decided to change a bit by removing AddStaticVehicle and now by trying to use CreateVehicle..
But these are the errors i receive ![Sad](images/smilies/sad.gif)
I tried many things but it just won't work. Please help
pawn Код:
//------------------------//
forward TuneVehicle();//--//
new pdphoenix1; // Modded.//
new pdphoenix2; // Modded.//
new pdphoenix3; // Modded.//
new pdphoenix4; // Modded.//
//------------------------//
pawn Код:
pdphoenix1 = AddStaticVehicle(603,1538.6616,-1644.2183,5.7291,180.3994,0,0); // pdphoenix1
TuneVehicle();
pdphoenix2 = AddStaticVehicle(603,1530.7032,-1644.0638,5.7286,180.8429,0,0); // pdphoenix2
TuneVehicle();
pdphoenix3 = AddStaticVehicle(603,1545.9161,-1651.0624,5.7290,90.5165,0,0); // pdphoenix3
TuneVehicle();
pdphoenix4 = AddStaticVehicle(603,1545.9692,-1659.1521,5.7288,89.5352,0,0); // pdphoenix4
TuneVehicle();
pawn Код:
SetTimer("TuneVehicle",20000,0);
pawn Код:
//----------------------------------//
AddVehicleComponent(pdphoenix1, 1144);
AddVehicleComponent(pdphoenix1, 1145);
AddVehicleComponent(pdphoenix1, 1018);
AddVehicleComponent(pdphoenix1, 1024);
AddVehicleComponent(pdphoenix1, 1010);
AddVehicleComponent(pdphoenix1, 1006);
AddVehicleComponent(pdphoenix1, 1001);
AddVehicleComponent(pdphoenix1, 1007);
AddVehicleComponent(pdphoenix1, 1017);
AddVehicleComponent(pdphoenix1, 1086);
ChangeVehicleColor(pdphoenix1, 0, 1);
//----------------------------------//
//----------------------------------//
AddVehicleComponent(pdphoenix2, 1144);
AddVehicleComponent(pdphoenix2, 1145);
AddVehicleComponent(pdphoenix2, 1018);
AddVehicleComponent(pdphoenix2, 1024);
AddVehicleComponent(pdphoenix2, 1010);
AddVehicleComponent(pdphoenix2, 1006);
AddVehicleComponent(pdphoenix2, 1001);
AddVehicleComponent(pdphoenix2, 1007);
AddVehicleComponent(pdphoenix2, 1017);
AddVehicleComponent(pdphoenix2, 1086);
ChangeVehicleColor(pdphoenix2, 0, 1);
//----------------------------------//
//----------------------------------//
AddVehicleComponent(pdphoenix3, 1144);
AddVehicleComponent(pdphoenix3, 1145);
AddVehicleComponent(pdphoenix3, 1018);
AddVehicleComponent(pdphoenix3, 1024);
AddVehicleComponent(pdphoenix3, 1010);
AddVehicleComponent(pdphoenix3, 1006);
AddVehicleComponent(pdphoenix3, 1001);
AddVehicleComponent(pdphoenix3, 1007);
AddVehicleComponent(pdphoenix3, 1017);
AddVehicleComponent(pdphoenix3, 1086);
ChangeVehicleColor(pdphoenix3, 0, 1);
//----------------------------------//
//----------------------------------//
AddVehicleComponent(pdphoenix4, 1144);
AddVehicleComponent(pdphoenix4, 1145);
AddVehicleComponent(pdphoenix4, 1018);
AddVehicleComponent(pdphoenix4, 1024);
AddVehicleComponent(pdphoenix4, 1010);
AddVehicleComponent(pdphoenix4, 1006);
AddVehicleComponent(pdphoenix4, 1001);
AddVehicleComponent(pdphoenix4, 1007);
AddVehicleComponent(pdphoenix4, 1017);
AddVehicleComponent(pdphoenix4, 1086);
ChangeVehicleColor(pdphoenix4, 0, 1);
pawn Код:
if(!strcmp(cmdtext, "/cpdp", true, 5))
{
438 CreateVehicle(pdphoenix1 = (603,1538.6616,-1644.2183,5.7291,180.3994,0,0); // pdphoenix1
439 TuneVehicle();
440 CreateVehicle(pdphoenix2 = (603,1530.7032,-1644.0638,5.7286,180.8429,0,0); // pdphoenix2
441 TuneVehicle();
442 CreateVehicle(pdphoenix3 = (603,1545.9161,-1651.0624,5.7290,90.5165,0,0); // pdphoenix3
443 TuneVehicle();
444 CreateVehicle(pdphoenix4 = (603,1545.9692,-1659.1521,5.7288,89.5352,0,0); // pdphoenix4
445 TuneVehicle();
return 1;
}
![Sad](images/smilies/sad.gif)
Quote:
F:\samp02Xserver.win32\gamemodes\test.pwn(43 ![]() F:\samp02Xserver.win32\gamemodes\test.pwn(440) : error 001: expected token: ",", but found ";" F:\samp02Xserver.win32\gamemodes\test.pwn(442) : error 001: expected token: ",", but found ";" F:\samp02Xserver.win32\gamemodes\test.pwn(444) : error 001: expected token: ",", but found ";" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
![Sad](images/smilies/sad.gif)