Problem - 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: Problem (
/showthread.php?tid=471314)
Problem -
boomerboom - 22.10.2013
Код:
public OnPlayerSpawn(playerid)
{
if (GetPlayerScore(playerid) >= 0)
{
// Get the player's position
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
// Create an explosion at the player's position
CreateExplosion(x, y, z, 12, 10.0);
return 1;
}
Код:
C:\Users\***\Desktop\LA-GW\filterscripts\test.pwn(31) : error 030: compound statement not closed at the end of file (started at line 18)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Problem -
verlaj - 22.10.2013
pawn Код:
public OnPlayerSpawn(playerid)
{
if (GetPlayerScore(playerid) >= 0)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 12, 10.0);
}
return 1;
}
make sure to close its "{" "}"
Re: Problem -
CrazyChoco - 22.10.2013
Boomboom, look at the error code given by the compiler and then go to the lines where the error is. Then try to read the whole functione from bottom to top instead of top to bottom. This helpts a lot to find brackets which are missing
Re: Problem -
newbie scripter - 22.10.2013
I was about to say that :3 fking powercuts