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

Thanks for your help, but i have again error, how i defined "sscanf" please? Is just with "new sscanf;" ?

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;
}
Code:
C:\Users\KEVIN\Desktop\My-RP-Life\filterscripts\CasseLegacy.pwn(387) : error 012: invalid function call, not a valid address
C:\Users\KEVIN\Desktop\My-RP-Life\filterscripts\CasseLegacy.pwn(387) : error 017: undefined symbol "params"
C:\Users\KEVIN\Desktop\My-RP-Life\filterscripts\CasseLegacy.pwn(387) : error 029: invalid expression, assumed zero
C:\Users\KEVIN\Desktop\My-RP-Life\filterscripts\CasseLegacy.pwn(387) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
PS: I need add that?

Code:
#include <sscanf>
tekass is offline   Reply With Quote