Dialog Problem.
#1

I am trying to make a car radio with a dialog and it doesn't want to work with me. Every other dialog I make works perfectly except for this one involving PlayAudioStreamForPlayer.

Here is the code for the OnPlayerDialogResponse:

Код:
			case 2001:
			{
				switch(listitem)
				{
					case 0:
					{
						if(IsPlayerInAnyVehicle(playerid))
						{
							PlayAudioStreamForPlayer(playerid, http://yp.shoutcast.com/sbin/tunein-stat...9.38024461						}
					}
					case 1:
					{
						if(IsPlayerInAnyVehicle(playerid))
						{
						PlayAudioStreamForPlayer(playerid, http://yp.shoutcast.com/sbin/tunein-stat...9.38024461						}
					}
				}
			}
Here are the error codes that pop out of nowhere only when this code is uncommented:

Код:
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(1700) : error 017: undefined symbol "IsPlayerConnectedEx"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(2159) : error 017: undefined symbol "IsPlayerConnectedEx"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(2455) : error 004: function "ResetPlayerWeaponsEx" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(2470) : error 004: function "ClearCriminalRecord" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(2786) : error 017: undefined symbol "IsPlayerConnectedEx"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(3263) : error 017: undefined symbol "IsPlayerConnectedEx"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(3918) : error 004: function "GroupMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(4252) : error 017: undefined symbol "IsPlayerConnectedEx"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(4265) : error 017: undefined symbol "SaveGroups"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(4266) : error 017: undefined symbol "UpdateAnalysis"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(4267) : error 017: undefined symbol "SaveJobs"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(4268) : error 017: undefined symbol "SaveHouses"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(4269) : error 017: undefined symbol "SaveBusinesses"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(5550) : error 004: function "QuizText" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(5551) : error 004: function "QuizText" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6187) : error 017: undefined symbol "IsPlayerConnectedEx"
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6618) : error 004: function "NearByMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6625) : error 004: function "NearByMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6632) : error 004: function "NearByMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6639) : error 004: function "NearByMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6640) : error 004: function "ResetPlayerWeaponsEx" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6647) : error 004: function "NearByMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6654) : error 004: function "NearByMessage" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6813) : error 004: function "GivePlayerWeaponEx" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(6825) : error 004: function "GivePlayerWeaponEx" is not implemented
C:\Users\Sergey\Desktop\Wolfie Rp\gamemodes\VortexRoleplay.pwn(7229) : error 017: undefined symbol "IsPlayerConnectedEx"
If I simply comment the code all the errors go away and none of them have anything to do with this code.

Thanks.
Reply
#2

You've missed a bracket. { or }
Reply
#3

You probably forgot a bracket.
Reply
#4

You should also use defines for dialog IDs, so you don't get confused. Using raw/const (for lack of a better word) values will get frustrating believe me.
Reply
#5

I am checking the code over and over again and I can't find a missing bracket. All of the brackets I have match up with another one. Is there anything else that could be a problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)