SA-MP Forums Archive
Help ! i cant compile - 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: Help ! i cant compile (/showthread.php?tid=609218)



Help ! i cant compile - Rasyidmf - 10.06.2016

hey guys ! i just create gamemode and the line is 25k ! when i compile , is very long i waiting or maybe crash ! please help me !


Re: Help ! i cant compile - Rasyidmf - 10.06.2016

before that !
i added helmet system
and chnge
Quote:

/*if(gTeam[playerid] != gTeam[issuerid])
{
if(weaponid == 34 && WEAPON_BODY_PART_HEAD)
{
/*if(Helmet[playerid] == 1)
{
new nama[MAX_PLAYER_NAME]
new string[128]
GetPlayerName(playerid, nama, sizeof(nama));
GameTextForPlayer(playerid,"~r~- %s HAS HAVE HELMET ~g~ -20HP -!", nama, 3000,3);
format(string, sizeof(string), "[HELMET]: [%s] Has Have Helmet ! -20HP To Him", name);
SendClientMessage(0xFF0019FF,string);
}
else
{*/
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && WEAPON_BODY_PART_HEAD && gTeam[playerid] != gTeam[issuerid])
{

and after that i added in (OnDialogRespone) Buy Helmet ! after that i crash !


Re: Help ! i cant compile - KillerDVX - 10.06.2016

If its crashes you should check on your recent script, it may be the reason.
Try deleting it and re-compile.


Re: Help ! i cant compile - Rasyidmf - 10.06.2016

And i incresead in buy item "cblue" a means color

sorry my bad english


Re: Help ! i cant compile - KillerDVX - 10.06.2016

Did you try what I've told you ? you may have forgot a bracket "{".


Re: Help ! i cant compile - Rasyidmf - 10.06.2016

i have 3474 opening ! and 3474 closes


Re: Help ! i cant compile - CSLangdale - 10.06.2016

Did you try taking out your recent edition to the script and recompile it? And you may have the same amounts bit are they all in the right places to match with each other?


Re: Help ! i cant compile - BornHuman - 10.06.2016

I know that the bigger the script gets the longer it takes to compile. But if it genuinely is crashing and isn't recovering (cause I know the script I work with takes a good 3 minutes to compile) then you're missing a bracket. I also know that invalid switch statements can cause it to.