SA-MP Forums Archive
were is the gamemode - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: were is the gamemode (/showthread.php?tid=406711)



were is the gamemode - hallonet99 - 11.01.2013

Hello

Today im gonna install Audio stream but i allways wounder how i put things in gamemode and how i do that.

Can someone help me plz!


Re: were is the gamemode - JavoDiaz - 11.01.2013

If you want to put the function PlayAudioStreamForPlayer just do if you want to the player listen the song when he has just connected you must do.

pawn Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid, yourURL);
    return 1;
}
The OnPlayerConnect callback already exists so you have to search it with CTRL + F and put that code inside of it without the public, only the PlayAudioStream function.


Re: were is the gamemode - hallonet99 - 11.01.2013

Wait Wait i allready know that but i meen should i press new in pawno and insert that and save it as whatelse
But when i save it i get one error: C:\Users\xxxx\Desktop\Untitled.pwn(56) : error 017: undefined symbol "yourURL"


Re: were is the gamemode - hallonet99 - 11.01.2013

O i forget url i putted in that as you saying but soon i get:
C:\Users\xxxx\Desktop\Untitled.pwn(56 -- 57) : error 029: invalid expression, assumed zero
C:\Users\xxxx\Desktop\Untitled.pwn(57) : warning 215: expression has no effect


Re: were is the gamemode - hallonet99 - 11.01.2013

Help me!


Re: were is the gamemode - hydravink - 11.01.2013

Stop spamming!
Dude, seriously? "undefined symbol yourURL" ?? Stupidity level is too high...
Learn to script before you get in advanced things, no offence.


Re: were is the gamemode - hallonet99 - 11.01.2013

Plz i tired to read 50 page about this can you be nice and tell me how i do
And i have putted in the url but i still get errors


Re: were is the gamemode - hydravink - 11.01.2013

Give us the exact script.


Re: were is the gamemode - Kudoz - 11.01.2013

show us the code please.
you're probably missing some "YourURL"); or something.


Re: were is the gamemode - hallonet99 - 11.01.2013

Quote:
Originally Posted by hallonet99
Посмотреть сообщение
O i forget url i putted in that as you saying but soon i get:
C:\Users\xxxx\Desktop\Untitled.pwn(56 -- 57) : error 029: invalid expression, assumed zero
C:\Users\xxxx\Desktop\Untitled.pwn(57) : warning 215: expression has no effect
Here is the error but im already typed in a url so if you want the script scroll up to #2 JavoDiaz