[HELP] How to fix this?
#1

how to fix this..

Код:
D:\GTA DATA\MGRP\gamemodes\MGRP.pwn(4430) : warning 203: symbol is never used: "seek"
D:\GTA DATA\MGRP\gamemodes\MGRP.pwn(4460) : warning 203: symbol is never used: "seek"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
PHP код:
SendAudioToRange(audioidvolumeseekFloat:xFloat:yFloat:zFloat:range)
{
    if(
audiohandleglobal >= 99)
    {
        
audiohandleglobal 0;
    }
    else
    {
        
audiohandleglobal++;
    }
    foreach(
Playeri)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Audio_IsClientConnected(i))
            {
                if(
IsPlayerInRangeOfPoint(i,range,x,y,z))
                {
                    new 
localhandle Audio_Play(i,audioid,false,false,false);
                    
Audio_Set3DPosition(ilocalhandlexyzrange);
                    
Audio_SetVolume(ilocalhandlevolume);
                    
audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return 
audiohandleglobal;
}
stock SendAudioURLToRange(url[], volumeseekFloat:xFloat:yFloat:zFloat:range)
{
    if(
audiohandleglobal >= 99)
    {
        
audiohandleglobal 0;
    }
    else
    {
        
audiohandleglobal++;
    }
    foreach(
Playeri)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Audio_IsClientConnected(i))
            {
                if(
IsPlayerInRangeOfPoint(i,range,x,y,z))
                {
                    new 
localhandle Audio_PlayStreamed(i,url,false,false,false);
                    
Audio_Set3DPosition(ilocalhandlexyzrange);
                    
Audio_SetVolume(ilocalhandlevolume);
                    
audiohandle[i][audiohandleglobal] = localhandle;
                }
            }
        }
    }
    return 
audiohandleglobal;

and this..
Код:
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:20] sscanf warning: Format specifier does not match parameter count.
[11:50:21] Loading Phase 1/2...
[11:50:21] Loading Phase 2/3...
[11:50:24] Loading Phase : Complete
[11:50:24] Loading Phase 3/3...
[11:50:24] [script] 3DTEXTDRAW LIMIT: 1024 (Static, non-streamed) | 3DTEXTDRAW COUNT: 1371
[11:50:24] [script] PICKUP LIMIT: 4096 (Static, non-streamed) | PICKUP COUNT: 1239
[11:50:24] [script] OBJECT LIMIT: 1000 (Static, non-streamed) | OBJECT COUNT: 3516
Reply
#2

1) You don't require an 'IsPlayerConnected(..)' check when using foreach - it does that internally.

2) Your foreach syntax is deprecated. The correct syntax:
PHP код:
foreach(new Player
Update your foreach include if you're using an old one.

3) You have a function argument called 'seek', but nowhere have you used it.

4) You have a sscanf function which does not handle the right amount of parameters. You'll have to show us some code for us to help you with that.
Reply
#3

Lol?

pawn Код:
PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
Reply
#4

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
1) You don't require an 'IsPlayerConnected(..)' check when using foreach - it does that internally.

2) Your foreach syntax is deprecated. The correct syntax:
PHP код:
foreach(new Player
Update your foreach include if you're using an old one.

3) You have a function argument called 'seek', but nowhere have you used it.

4) You have a sscanf function which does not handle the right amount of parameters. You'll have to show us some code for us to help you with that.
Thank you for this foreach(new i : Player)
code in where ?


Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Lol?

pawn Код:
PlayAudioStreamForPlayer(playerid, url[], Float:posX = 0.0, Float:posY = 0.0, Float:posZ = 0.0, Float:distance = 50.0, usepos = 0)
whats wrong with that ? can you tell me
Reply
#5

Quote:
Originally Posted by OsvaldoS
Посмотреть сообщение
Thank you for this foreach(new i : Player)
code in where ?
The code that you execute before the warning appears. It's most likely a command.
Reply
#6

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
The code that you execute before the warning appears. It's most likely a command.
last script i put a dj system, boombox, party system, and fireworks. i add that 4 script without compile first. i compile when im done add that 4 script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)