23.07.2015, 04:24
pawn Код:
(1256) : error 035: argument type mismatch (argument 2)
(1259) : error 035: argument type mismatch (argument 2)
(1282) : error 035: argument type mismatch (argument 2)
(1286) : error 035: argument type mismatch (argument 2)
(1291) : error 035: argument type mismatch (argument 2)
(1296) : error 035: argument type mismatch (argument 2)
(1300) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
pawn Код:
COMMAND:convoy(playerid, params[])
{
new thing[128];
SendMessageToAdmins(playerid, -1, "/convoy", params);
if (strlen(thing) == 0)
{
SendClientMessage(playerid, WORK, "USAGE: /convoy [playerid]");
}
new rand;
rand = random(sizeof(trucker));
//SetPVarInt(playerid, "PlayerMission", rand);
foreach(Player, i)
{
if(GetPVarInt(i, "PlayerMission") != rand) return SetPVarInt(playerid, "PlayerMission", rand);
else return cmd_convoy(playerid, params);
}
if (GetPlayerTeam(playerid) == 1)
{
new m = GetVehicleModel(GetPlayerVehicleID(playerid));
if(m == 514 || m == 515 || m == 403)
{
new t = GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
if (t == 435 || t == 450 || t == 584)
{
if (GetPlayerVehicleSeat(playerid) == 0)
{
Trucker1(playerid);
SendClientMessage(playerid, WORK, "If you lose your trailer, you will need to re-attach it to deliver");
}
else
{
SendClientMessage(playerid, WORK, "You are not the driver of this vehicle");
}
}
else
{
SendClientMessage(playerid, WORK, "You do not have the correct trailer, please go and attach one!");
}
}
else
{
SendClientMessage(playerid, WORK, "You are not in a truck, please go and get one!");
}
}
return 1;
}