08.07.2011, 18:49
pawn Код:
stock DIV(playerid,a,b)
{
sveikas[playerid]=0;
while a > 0
{ // <<<<<<<<<<<<< this line
a = a - b;
sveikas[playerid]++;
}
return sveikas[playerid];
}
stock MOD(playerid,a,b)
{
liekana[playerid]=0;
liekana[playerid] =a - DIV(playerid,a,b)* b;
return liekana[playerid];
}
but i get error
Код:
E:\Smth\samp\free roam\gamemodes\freeroam.pwn(3963) : error 029: invalid expression, assumed zero