16.06.2011, 17:29
I recently had a idea.
To put siren "objects" on to civ cars. for FBI etc.
ALthough, i keep getting errors "array mismatch"
How does one do this
new siren[MAX_VEHICLES];
if(strcmp(cmd, "/siren", true) == 0)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
new vehicleid = GetPlayerVehicleID(playerid);
siren[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(siren, vehicleid, 0.0, 0.0, 2.0 , 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, COLOR_LSPD, "You may not use this Command!");
return 1;
}
And im not sure how to do it yet, im just trying.
Can somebody help me or point me in the right direction
To put siren "objects" on to civ cars. for FBI etc.
ALthough, i keep getting errors "array mismatch"
How does one do this
new siren[MAX_VEHICLES];
if(strcmp(cmd, "/siren", true) == 0)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
new vehicleid = GetPlayerVehicleID(playerid);
siren[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(siren, vehicleid, 0.0, 0.0, 2.0 , 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, COLOR_LSPD, "You may not use this Command!");
return 1;
}
And im not sure how to do it yet, im just trying.
Can somebody help me or point me in the right direction