Error when compiling
#1

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?
Reply
#2

i think you must use
pawn Код:
print("DEBUG PlayJailSound()");
Reply
#3

Quote:
Originally Posted by James_Alex
i think you must use
pawn Код:
print("DEBUG PlayJailSound()");
No I still get the same error.
Reply
#4

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
Reply
#5

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;
}
Reply
#6

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;
}
Reply
#7

Thank you, I will try that as soon as I get on my computer with the gamemode.
Reply
#8

No that still doesn't work, I just get the same error
Reply
#9

Sorry for the triple post but I really need help.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)