PlayerAudioStreamForPlayer+SetWorldTime(0); Help +rep
#1

Well guys i would like to add music onplayerspawn so
when im putting:
pawn Код:
{
PlayAudioStreamForPlayer(playerid,"URL");
 }
this into my script it says:
pawn Код:
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(1159) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(1344) : warning 217: loose indentation
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(1386) : warning 217: loose indentation
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(3607) : error 017: undefined symbol "playerid"
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(3607) : warning 215: expression has no effect
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(3607) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(3607) : error 029: invalid expression, assumed zero
C:\DOCUME~1\VASILIS\6808~1\THEULT~1\THEULT~1\GAMEMO~1\freeroam.pwn(3607) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Im putting down from the ongamemodeinit
or i must put it OnPlayerSpawn?
__________________________________________________ ____________________
Another one help
for:
pawn Код:
SetWorldTime(0);
Im going to game but nothing happens
________________________________
Help me into these 2 things please
Reply
#2

About the PlayAudioStream for player it has the playerid parameter OnGameModeInit doesn't use any parameters so put it under OnPlayerSpawn.

About the SetWorldTime where are you putting it ?
Reply
#3

Into the OnGamemodeInit
Reply
#4

i think you forgot to add this
pawn Код:
forward OnPlayerPrivmsg();
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)