PDA

View Full Version : error 030


raamiix
18/05/2013, 09:47 AM
How to fix this

C:\Users\Ramin\Desktop\Spel\SAMP\GL-RP\gamemodes\GLRP.pwn(89108) : error 030: compound statement not closed at the end of file (started at line 89099)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


CMD:radiohelp(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] >= 1)
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Radio Help - Read this if your radio is not working");
SendClientMessageEx(playerid, COLOR_GREEN, "Make sure your audio on the computer works");
SendClientMessageEx(playerid, COLOR_GREEN, "Press Stop Radio and then select your radio station");
SendClientMessageEx(playerid, COLOR_GREEN, "Go to Options then Audio Setup then check that the sound on the radio is filled (Press ESC to access the Options)");
return 1;
}

Stanford
18/05/2013, 09:54 AM
The problem isn't with the code that you gave, the problem is with the regular of the script, check the end of your script

raamiix
18/05/2013, 09:55 AM
The problem isn't with the code that you gave, the problem is with the regular of the script, check the end of your script

End of my script i got this

CMD:radiohelp(playerid, params[])
{
if(PlayerInfo[playerid][pLevel] >= 1)
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Radio Help - Read this if your radio is not working");
SendClientMessageEx(playerid, COLOR_GREEN, "Make sure your audio on the computer works");
SendClientMessageEx(playerid, COLOR_GREEN, "Press Stop Radio and then select your radio station");
SendClientMessageEx(playerid, COLOR_GREEN, "Go to Options then Audio Setup then check that the sound on the radio is filled (Press ESC to access the Options)");
return 1;
}

Stanford
18/05/2013, 10:00 AM
Ohh you should put this under a command.. not at the end of your script