error 030: compound statement not closed at the end of file
#1

Hey,

i am currently making a DM script.

When i try and compile i get this error message :

Quote:

Sa-mp test server\gamemodes\LDMv1.0.pwn(83) : error 030: compound statement not closed at the end of file (started at line 54)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Here is the bit of script it is saying :

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, YELLOW, "It is very simple,");
SendClientMessage(playerid, YELLOW, "The more you kill, the more money you earn to buy weapons.");
SendClientMessage(playerid, YELLOW, "Use /buygun to buy a weapon.");
return 1;
}
if (strcmp("/buygun", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, YELLOW, "Use - /buygun [weaponname]");
SendClientMessage(playerid, YELLOW, "baseballbat - $50 | sdpistol - $200 | deagle - $500 | mp5 - $600");
SendClientMessage(playerid, YELLOW, "ak47 - $1250 | m4 - $1500 | Sniper Rifle - $2000");
return 1;
}

if (strcmp("/buygun baseballbat", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 50)
{
SendClientMessage(playerid, YELLOW, "You do not have enough cash.");
}

Please help me out, i think i may have missed a bracket somewhere but i cant find it anywhere
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)