17.11.2014, 18:12
pawn Код:
error 035: argument type mismatch (argument 1)
pawn Код:
CMD:v(playerid, params[])
{
if (sscanf(params, "u", Vehicle)) return SendClientMessage(playerid, 0xF81414FF, "USAGE: /v [ID/name].");
vehicleid = GetVehicleModelIDFromName(Vehicle);
if(Vehicle < 400 || Vehicle > 611) return SendClientMessage(playerid, 0xF81414FF, "ERROR: Invalid vehicle name/ID.");
GetPlayerPos(playerid, X, Y, Z);
new PlayersVehicle = CreateVehicle(vehicleid, X, Y, Z, 0.0, -1, -1, -1);
LinkVehicleToInterior(PlayersVehicle, GetPlayerInterior(playerid));
format(String, sizeof(String), "You have spawned a %s", aVehicleNames[vehicleid - 400]);
SendClientMessage(playerid, 0x33AA33FF, String);
return 1;
}