28.06.2012, 10:28
(
Последний раз редактировалось Gangster-rocks; 28.06.2012 в 12:19.
)
Solved.
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; }
C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(151) : warning 204: symbol is assigned a value that is never used: "minigun2" C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(150) : warning 204: symbol is assigned a value that is never used: "minigun1" C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(164) : warning 217: loose indentation C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(161) : warning 204: symbol is assigned a value that is never used: "RPG2" C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(160) : warning 204: symbol is assigned a value that is never used: "RPG1" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.
Код:
C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(151) : warning 204: symbol is assigned a value that is never used: "minigun2" C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(150) : warning 204: symbol is assigned a value that is never used: "minigun1" C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(164) : warning 217: loose indentation C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(161) : warning 204: symbol is assigned a value that is never used: "RPG2" C:\DOCUME~1\admin\Desktop\NEF7FE~1\FILTER~1\cartuner.pwn(160) : warning 204: symbol is assigned a value that is never used: "RPG1" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings. |
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;
}
}