View Single Post
Old 31/05/2017, 08:17 PM   #9
tekass
Little Clucker
 
Join Date: May 2017
Posts: 21
Reputation: 0
Default Re: How to use "DestroyVehicle" whitout player in vehicle?

I try with that:

Code:
forward sscanf(const data[], const format[], {Float,_}:...);
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext,"/fb", true))
	{
	new v;
	if(sscanf(params, "i", v)) return SendClientMessage(playerid, -1, "/fb <car id>");
	if(!IsValidVehicle(v)) return 1;
	DestroyVehicle(v);
	return 1;
	}
but error is:

Code:
C:\Users\KEVIN\Desktop\My-RP-Life\filterscripts\CasseLegacy.pwn(386) : error 004: function "sscanf" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Which is the valid function for sscanf please?
tekass is offline   Reply With Quote