CMD:jetpack(playerid, params[]) { if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command."); if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command."); if(sscanf(params, "u", playerid)); SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK); return 1; } |
C:\Users\Fiore\Desktop\zGaming GM\zGaming RP\gamemodes\ZRP.pwn(16442) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
if(sscanf(params, "u", playerid)); |
CMD:jetpack(playerid, params[])
{
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
new targetID;
if(sscanf(params, "u", targetID)) return SendClientMessage(playerid, -1, "Syntax: /jetpack [player]");
SetPlayerSpecialAction(targetID, SPECIAL_ACTION_USE JETPACK);
return 1;
}