zero ereur crash - 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: zero ereur crash (
/showthread.php?tid=82894)
zero ereur crash -
Mr_C30 - 21.06.2009
hi can you please correct code it will compile well 0ereur/warning but it is my samp server crash at startup
Код:
dcmd(listrace,8,cmdtext);
dcmd_listbiz(playerid, params[])
{
#pragma unused params
new tmp[128], i = 0;
do
{
i++;
format(tmp, sizeof(tmp), "%03d.biz", i);
}
while(fexist(tmp));
format(tmp, sizeof(tmp), "Ton serveur possиde %d biz.", i-1);
SendClientMessage(playerid, GREEN, tmp);
}
pleasse
Re: zero ereur crash -
- Skeed - - 21.06.2009
erm, what's this for?
-Skeed
Re: zero ereur crash -
Mr_C30 - 21.06.2009
is a loop;
can someone help me?
Re: zero ereur crash -
MadeMan - 21.06.2009
is this correct?
Код:
format(tmp, sizeof(tmp), "%03d.biz", i);
or should it be like this:
Код:
format(tmp, sizeof(tmp), "%d.biz", i);
Re: zero ereur crash -
Mr_C30 - 21.06.2009
not because it's my file as s'apellle its 001.biz 002.biz 003.biz 004.biz 005.biz ...
but its just that COMPILE WELL samp launch a crash and when they run the fs
Re: zero ereur crash -
MadeMan - 21.06.2009
Quote:
Originally Posted by Mr_C30
not because it's my file as s'apellle its 001.biz 002.biz 003.biz 004.biz 005.biz ...
but its just that COMPILE WELL samp launch a crash and when they run the fs
|
Shouldn't it be like this then:
Код:
format(tmp, sizeof(tmp), "00%d.biz", i);
If this is wrong, script can't open file and that's because it crash.
Re: zero ereur crash -
Mr_C30 - 21.06.2009
ok I change but its always crash :/
Re: zero ereur crash -
Mr_C30 - 21.06.2009
ey I thought, code of origin and then is good walking in this form=
Код:
if(strcmp(cmdtext, "/test", true) == 0)
{
new tmp[128], i = 0;
do
{
i++;
format(tmp, sizeof(tmp), "%03d.biz", i);
}
while(fexist(tmp));
format(tmp, sizeof(tmp), "Ton serveur possиde %d biz.", i-1);
SendClientMessage(playerid, COLOR,tmp);
}
but in the form of his early crash :/
pleasse hellp my
Re: zero ereur crash -
MadeMan - 21.06.2009
If your SAMP crashes on startup, then maybe the problem isn't a command?
Re: zero ereur crash -
Mr_C30 - 21.06.2009
if I just withdraw to code .... and everything works well
please