empty statement & undefined symbol "i" - 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: empty statement & undefined symbol "i" (
/showthread.php?tid=629820)
empty statement & undefined symbol "i" -
Jihanz - 04.03.2017
Can you help me
my callback
PHP код:
getRumahID()
{
for(new i=0; i<sizeof(rInfo); i++);
{
if(rInfo[i][r_id]==0) return i;
}
return 0;
}
i got this
Код:
D:\data aji\Samp server\gamemodes\tes.pwn(267) : error 036: empty statement
D:\data aji\Samp server\gamemodes\tes.pwn(269) : error 017: undefined symbol "i"
D:\data aji\Samp server\gamemodes\tes.pwn(269) : error 017: undefined symbol "i"
Thanks Before
Re: empty statement & undefined symbol "i" -
Toroi - 04.03.2017
Thanking before everything as instructed.
Код:
getRumahID()
{
for(new i=0; i<sizeof(rInfo); i++) // removed the ; here
{
if(rInfo[i][r_id]==0) return i;
}
return 0;
}
Re: empty statement & undefined symbol "i" -
Jihanz - 04.03.2017
Quote:
Originally Posted by Troydere
Thanking before everything as instructed.
Код:
getRumahID()
{
for(new i=0; i<sizeof(rInfo); i++) // removed the ; here
{
if(rInfo[i][r_id]==0) return i;
}
return 0;
}
|
again and again Sorry
Thanks Before