06.08.2015, 11:27
pawn Код:
warning 202: number of arguments does not match definition
pawn Код:
CMD:car(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] > 1)
{
{
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
new vehicle = CreateVehicle(411, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
PutPlayerInVehicle(playerid, vehicle, 0);
SendClientMessage(playerid, -1, "Your infernus has been spawned %s.", Name(playerid));
}
}
else
{
SendClientMessage(playerid, -1, "You do not have access to this command");
}
}
stock Name(playerid)
{
new nname[MAX_PLAYER_NAME];
GetPlayerName(playerid, nname, sizeof(nname));
return nname;
}