invalid function or declaration problem need help!
#1

well i've been making my script and when I compile I get one error which I don't know how to fix. Here is the pawn code.

pawn code:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/ak47", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) > 1200)
{
GivePlayerMoney(playerid,-2000);
GivePlayerWeapon(playerid,31,60);
GameTextForPlayer(playerid, "~b~Here is your Ak47!", 3000, 1);
}else GameTextForPlayer(playerid, "You Havent Got Enough", 3000, 2);
}else GameTextForPlayer(playerid, "Now Beat The crap outta people!", 3000, 3);
return false;
}
return 1;
}
}

and this is the error I get:

C:\Users\jak\Desktop\jlbw's freeroam\filterscripts\ak47.pwn(102) : error 010: invalid function or declaration

Could anyone help me please?
Reply
#2

What line is 102 in that cmd ?

This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds.
Reply
#3

the return 1; line
Reply
#4

it doesn't matter now fixed it and I can't believe it was that simple!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)