Problem
#1

Код:
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.
Reply
#2

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 "{" "}"
Reply
#3

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
Reply
#4

I was about to say that :3 fking powercuts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)