SA-MP Forums Archive
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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cant compile (/showthread.php?tid=92041)



Cant compile - Ironboy500 - 18.08.2009

I cant compile. It starts and it writes to me Pawn Compiler library has encountered a problem and needs to close. What should I do, How to compile now?


Re: Cant compile - Khelif - 18.08.2009

I assume it has something to do with brackets. you either have 1 too much or 1 missing in the script.. but I could take a look at your script if you let me.


Re: Cant compile - pliva_sb - 18.08.2009

Quote:
Originally Posted by Ironboy500
I cant compile. It starts and it writes to me Pawn Compiler library has encountered a problem and needs to close. What should I do, How to compile now?
I think that you have surplus
Код:
}



Re: Cant compile - Ironboy500 - 18.08.2009

Still cant I try everything


Re: Cant compile - Luca Dimonte - 18.08.2009

You didn't try enough, just remember the last code you wrote o changed, and check it, the mistake must be there.

You can comment that code with /* and */ so that part isn't compiled. When it compiles ok, you know where the mistake is and look for it. Goog luck.


Re: Cant compile - Ironboy500 - 18.08.2009

so, if I want to add some cmd-s, I need to add this strtok before?

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}