Why is that didn't work?
#7

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/miniguns", cmdtext, true, 5) == 0)
    {
        new minigun1;
        new minigun2;
        minigun1 = CreateObject(362, 0.78, 1.46, 0.40,   2.40, 27.12, 87.01);
        minigun2 = CreateObject(362, -0.52, 1.29, 0.50,   2.40, 27.12, 87.01);
        AttachObjectToVehicle(GetPVarInt(playerid, "minigun1"), GetPlayerVehicleID(playerid), 0.78, 1.46, 0.40,   2.40, 27.12, 87.01);
        AttachObjectToVehicle(GetPVarInt(playerid, "minigun2"), GetPlayerVehicleID(playerid), -0.52, 1.29, 0.50,   2.40, 27.12, 87.01);
        return 1;
    }
    if (strcmp("/rpgs", cmdtext, true, 10) == 0)
    {
         new RPG1;
         new RPG2;
         RPG1 = CreateObject(359, 0.53, -0.33, 0.72,   0.00, 0.00, 86.16);
         RPG2 = CreateObject(359, -0.58, -0.18, 0.72,   0.00, 0.00, 86.16);
         AttachObjectToVehicle(GetPVarInt(playerid, "RPG1"), GetPlayerVehicleID(playerid), 0.53, -0.33, 0.72,   0.00, 0.00, 86.16);
         AttachObjectToVehicle(GetPVarInt(playerid, "RPG2"), GetPlayerVehicleID(playerid), -0.58, -0.18, 0.72,   0.00, 0.00, 86.16);
        return 1;
    }
}
You were missing a bracket
Reply


Messages In This Thread
Why is that didn't work? [solved] - by Gangster-rocks - 28.06.2012, 10:28
Re: Why is that didn't work? - by JaKe Elite - 28.06.2012, 10:33
Re: Why is that didn't work? - by kepa333 - 28.06.2012, 10:33
Re: Why is that didn't work? - by Gangster-rocks - 28.06.2012, 10:45
Re: Why is that didn't work? - by JaTochNietDan - 28.06.2012, 10:56
Re: Why is that didn't work? - by Gangster-rocks - 28.06.2012, 11:21
Re: Why is that didn't work? - by Dodo9655 - 28.06.2012, 11:46
Re: Why is that didn't work? - by Gangster-rocks - 28.06.2012, 11:57
Re: Why is that didn't work? - by JaKe Elite - 28.06.2012, 11:59

Forum Jump:


Users browsing this thread: 3 Guest(s)