19.11.2011, 05:34
I Have an problem on my command
object not attaching ? to vechile
Ther is cmd
Can anyone tell me what i miss ? in cmd
object not attaching ? to vechile
Ther is cmd
Код:
if(strcmp(cmdtext, "/test", true) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(GetPlayerMoney(playerid) >= 0)
{
new mnrg[MAX_PLAYERS];
GivePlayerMoney(playerid, -0);
mnrg[playerid] = CreateVehicle(560, X, Y, Z + 1, 90.0, -1, -1, 100000000);
PutPlayerInVehicle(playerid, mnrg[playerid], 0);
AddVehicleComponent(mnrg[playerid], 1079);
AttachObjectToVehicle(19076, 560, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);
}
return 1;
}


