Jump to content

Question

Posted

PlaySoundForPlayersInRange

PlayAudioStreamForPlayer(i, "nu pun nume", 1026.3042,-348.1998,73.9893, 60, 1);

si-mi da eroarea asta

[pawn]error 017: undefined symbol "i"[/pawn]

si daca pun [pawn]#include "../include/gl_common.inc" // for PlaySoundForPlayersInRange()[/pawn]

imi da eroarea

[pawn]error 021: symbol already defined: "strtok"[/pawn]

iar la linia unde imi zice error symbol already defined: "strtok" este o {

3 answers to this question

Recommended Posts

Posted

Ca sa rezolvi prima eroare, schimba linia cu asta:

for ( new i = 0 ; i < MAX_PLAYERS ; i++ )

{

    PlayAudioStreamForPlayer ( i , "/* URL-ul melodiei. */" , 1026.3042 , -348.1998 , 73.9893 , 60 , 1 ) ;

}

Iar a doua eroare spune ca simbolul strtok este deja definit (este definit in gl_common.inc) asa ca, cauta-l si sterge-l.

Posted

[pawn]stock PlaySoundForPlayersInRange(soundid, Float:range, Float:x, Float:y, Float:z)

{

    for(new i=0; i<MAX_PLAYERS; i++)

    {

        if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,range,x,y,z))

        {

            PlayerPlaySound(i, soundid, x, y, z);

        }

    }

}[/pawn]

strtok se afla inca o data in gm , sterge-l din gm sau inc gl_common xD

idiots.png
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.