Error when compiling -
Worthy - 02.07.2009
Hello everybody, when I try to compile my server it just says this;
Код:
C:\Documents and Settings\Mikey\Desktop\samp02Xserver.win32\gamemodes\lol.pwn(6975) : warning 208: function with tag result used before definition, forcing reparse
The code at like 6975 is;
Код:
printf("DEBUG PlayJailSound()");
Can anybody help me please?
Re: Error when compiling -
James_Alex - 02.07.2009
i think you must use
pawn Код:
print("DEBUG PlayJailSound()");
Re: Error when compiling -
Worthy - 02.07.2009
Quote:
Originally Posted by James_Alex
i think you must use
pawn Код:
print("DEBUG PlayJailSound()");

|
No I still get the same error.
Re: Error when compiling -
Ignas1337 - 02.07.2009
there's no diffrence between print and printf only that with printf you can add params, although I always use printf. Hmm, the thing looks right, could you give us the entire callback on which this error is? this may not be the exact line the error is, it may be + or - 1 line as sometimes it is
Re: Error when compiling -
Worthy - 02.07.2009
Quote:
Originally Posted by Izanagi
there's no diffrence between print and printf only that with printf you can add params, although I always use printf. Hmm, the thing looks right, could you give us the entire callback on which this error is? this may not be the exact line the error is, it may be + or - 1 line as sometimes it is
|
Here is a block of code from it;
pawn Код:
public Float:PlayJailSound(arg0, arg1, arg2, Float:arg3, Float:arg4, Float:arg5)
{
if(glob79C94 >= 1)
printf("DEBUG PlayJailSound()");
}
for(new var0 = 0; var0 <= 200; var0++)
{
if(IsPlayerConnected(var0) == 1)
{
PlayerPlaySound(var0, arg0, arg3, arg4, arg5);
glob78E00 = arg1;
glob78DF4 = arg3;
glob78DF8 = arg4;
glob78DFC = arg5;
}
}
return 0.0;
}
Re: Error when compiling -
James_Alex - 02.07.2009
the probleme is fixed
try this
pawn Код:
public Float:PlayJailSound(arg0, arg1, arg2, Float:arg3, Float:arg4, Float:arg5)
{
if(glob79C94 >= 1)
{
printf("DEBUG PlayJailSound()");
for(new var0 = 0; var0 <= 200; var0++)
{
if(IsPlayerConnected(var0) == 1)
{
PlayerPlaySound(var0, arg0, arg3, arg4, arg5);
glob78E00 = arg1;
glob78DF4 = arg3;
glob78DF8 = arg4;
glob78DFC = arg5;
}
}
return 0.0;
}
Re: Error when compiling -
Worthy - 02.07.2009
Thank you, I will try that as soon as I get on my computer with the gamemode.
Re: Error when compiling -
Worthy - 03.07.2009
No that still doesn't work, I just get the same error
Re: Error when compiling -
Worthy - 03.07.2009
Sorry for the triple post but I really need help.
Re: Error when compiling -
Ignas1337 - 03.07.2009
umm what are these 'glob' variables anyway?
first, I would use stock for a function that returns a float, my opinion on this.
This shit sucks, can't find anything that's wrong ;// Try changing some code, remove this and try doing the same thing a diffrent way