27.04.2012, 13:11
on this code :
i get these errors:
Need help fast!
pawn Код:
if(strcmp("/blue", cmdtext, true, 10))
{
SetPVarInt(playerid, 4812, 1);
SetPVarInt(playerid, 4840, CreateObject(18648, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0));
SetPVarInt(playerid, 4860, CreateObject(18648, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0));
AttachObjectToVehicle(GetPVarInt(playerid, 4884), GetPlayerVehicleID(playerid), 3209481421, 0, 3207803699, 0, 0, 0);
AttachObjectToVehicle(GetPVarInt(playerid, 4904), GetPlayerVehicleID(playerid), 1061997773, 0, 3207803699, 0, 0, 0);
SendClientMessage(playerid, 0xFFFFFFAA, ".:: Green Neons installed! -1500 ::.");
GivePlayerMoney(playerid, -1500);
return 1;
}
if(strcmp(cmdtext, "/green", true) == 6)
{
SetPVarInt(playerid, 5040, 1);
SetPVarInt(playerid, 5068, CreateObject(18649, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0));
SetPVarInt(playerid, 5092, CreateObject(18649, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0));
AttachObjectToVehicle(GetPVarInt(playerid, 5116), GetPlayerVehicleID(playerid), 3209481421, 0, 3207803699, 0, 0, 0);
AttachObjectToVehicle(GetPVarInt(playerid, 5140), GetPlayerVehicleID(playerid), 1061997773, 0, 3207803699, 0, 0, 0);
SendClientMessage(playerid, 0xFFFFFFAA, ".:: You installed Green Neons! -1500$ ::.");
GivePlayerMoney(playerid, -1500);
return 1;
}
Код:
C:\Users\Kudoz\Desktop\parkour.pwn(4624) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4625) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4626) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4627) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4628) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4635) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4636) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4637) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4638) : error 035: argument type mismatch (argument 2) C:\Users\Kudoz\Desktop\parkour.pwn(4639) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.