error 036: empty statement - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 036: empty statement (
/showthread.php?tid=459070)
error 036: empty statement -
Blademaster680 - 20.08.2013
Код:
CMD:repair(playerid, params[])
{
new giveplayerid, ispassenger, str[128], price;
if(PlayerInfo[playerid][pFaction] != 7) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player specifed.");
if(sscanf(params, "ds", giveplayerid, price));
{
SendClientMessage(playerid, -1, "USAGE: /repair [playerid][price]");
return 1;
}
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && ispassenger) return SendClientMessage(playerid, COLOR_RED, "That player is not in a vehicle");
format(str, sizeof(str), "%s would like to repair \nyour car for you for : $%d", GetName(playerid), price);
ShowPlayerDialog(giveplayerid, DIALOG_REPAIR, DIALOG_SYLE_MSGBOX, str);
return 1;
}
The line with the empty statement is:
Код:
if(sscanf(params, "ds", giveplayerid, price));
Re: error 036: empty statement -
Youarex - 20.08.2013
Remove semicolon from the end.
Re: error 036: empty statement -
Blademaster680 - 20.08.2013
ahhh of course missed that XD thanks