error 030: compound statement not closed at the end of file - 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 030: compound statement not closed at the end of file (
/showthread.php?tid=426373)
error 030: compound statement not closed at the end of file -
ToxicLifeFul - 28.03.2013
Hi, I'm New on that forum so..
i have that error : error 030: compound statement not closed at the end of file (started at line 35)
http://pastebin.com/NfAzsqe2 ( there is my FS )
//Sorry for bad english
Re: error 030: compound statement not closed at the end of file -
Pawnie - 28.03.2013
You missed a bracket there
Код:
if (strcmp("/r", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, GetPVarFloat(playerid,"xpos"),GetPVarFloat(playerid,"ypos"),GetPVarFloat(playerid,"zpos"));
LinkVehicleToInterior(tmpcar, GetPVarInt(playerid,"int"));
}
else
{
SetPlayerPos(playerid, GetPVarFloat(playerid,"xpos"), GetPVarFloat(playerid,"ypos"), GetPVarFloat(playerid,"zpos"));
SetPlayerInterior(playerid, GetPVarInt(playerid,"int"));
}
SendClientMessage(playerid, 0x33AA33AA, "Loaded Saved Position.");
return 1;
}
}
Try that.
Re : error 030: compound statement not closed at the end of file -
ToxicLifeFul - 28.03.2013
Same Problem :/