SA-MP Forums Archive
Dialog Problem +rep - 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: Dialog Problem +rep (/showthread.php?tid=308656)



Dialog Problem +rep - N0FeaR - 04.01.2012

I got few problem with my dialog

here is the erro
Код:
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(65025) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(65025) : warning 215: expression has no effect
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(65025) : error 001: expected token: ";", but found "-string-"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(65025) : warning 215: expression has no effect
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(65025) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(65025) : fatal error 107: too many error messages on one line
here is line 65025


Код:
}
CMD:cradio(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You need to be in a vehicle");
    if(RadioOn[playerid] == 0)
    {
	    ShowPlayerDialog(playerid,DIALOG_CRADIO,DIALOG_STYLE_MSGBOX,"Radio","Select what you wish to do","Turn On","Turn Off");
		RadioOn[playerid] = 1;
	}
	if(RadioOn[playerid] == 1)
	{
line 65025	    ShowPlayerDialog(playerid,DIALOG_RADIOSTATION,DIALOG_STYLE_LIST,""COLOR_BLUE"Radio Stations",""COLOR_RED"Hip-Hop\n"COLOR_RED"Pop\n"COLOR_RED"Country\n"COLOR_RED"Comedy\n"COLOR_RED"Reagge\n"COLOR_RED"Mange Makers(CD)","Select","Back");
	}
    return 1



Re: Dialog Problem +rep - Littlehelper - 04.01.2012

Please put return 1;
and }
Код:
CMD:cradio(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You need to be in a vehicle");
    if(RadioOn[playerid] == 0)
    {
	    ShowPlayerDialog(playerid,DIALOG_CRADIO,DIALOG_STYLE_MSGBOX,"Radio","Select what you wish to do","Turn On","Turn Off");
		RadioOn[playerid] = 1;
	}
	if(RadioOn[playerid] == 1)
	{
line 65025	    ShowPlayerDialog(playerid,DIALOG_RADIOSTATION,DIALOG_STYLE_LIST,""COLOR_BLUE"Radio Stations",""COLOR_RED"Hip-Hop\n"COLOR_RED"Pop\n"COLOR_RED"Country\n"COLOR_RED"Comedy\n"COLOR_RED"Reagge\n"COLOR_RED"Mange Makers(CD)","Select","Back");
	}
    return 1;
}
Like This
Thankx.


Re: Dialog Problem +rep - [MG]Dimi - 04.01.2012

Are you colors defined as
pawn Код:
#define COLOR_BLUE  "{0000FF}"
//and
#define COLOR_RED   "{FF0000}"
//OR
#define COLOR_RED   {FF0000}
//and
#define COLOR_BLUE  {0000FF}



Re: Dialog Problem +rep - N0FeaR - 04.01.2012

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
Please put return 1;
and }
Код:
CMD:cradio(playerid, params[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: You need to be in a vehicle");
    if(RadioOn[playerid] == 0)
    {
	    ShowPlayerDialog(playerid,DIALOG_CRADIO,DIALOG_STYLE_MSGBOX,"Radio","Select what you wish to do","Turn On","Turn Off");
		RadioOn[playerid] = 1;
	}
	if(RadioOn[playerid] == 1)
	{
line 65025	    ShowPlayerDialog(playerid,DIALOG_RADIOSTATION,DIALOG_STYLE_LIST,""COLOR_BLUE"Radio Stations",""COLOR_RED"Hip-Hop\n"COLOR_RED"Pop\n"COLOR_RED"Country\n"COLOR_RED"Comedy\n"COLOR_RED"Reagge\n"COLOR_RED"Mange Makers(CD)","Select","Back");
	}
    return 1;
}
Like This
Thankx.
Where ? :P


Re: Dialog Problem +rep - Littlehelper - 04.01.2012

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Where ? :P
Just copy my code and paste it....


Re: Dialog Problem +rep - N0FeaR - 04.01.2012

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
Just copy my code and paste it....
now i get this

Код:
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72478) : warning 204: symbol is assigned a value that is never used: "distance"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72499) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72493) : warning 204: symbol is assigned a value that is never used: "distance"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72514) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72508) : warning 204: symbol is assigned a value that is never used: "distance"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72529) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72523) : warning 204: symbol is assigned a value that is never used: "distance"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72544) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72538) : warning 204: symbol is assigned a value that is never used: "distance"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72559) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Robin\Desktop\New rp\gamemodes\RMRP.pwn(72553) : warning 204: symbol is assigned a value that is never used: "distance"
Код:
                    for(new i; i < MAX_PLAYERS; i++)
					{
                        new Float:x, Float:y, Float:z,Float:distance = 3.0;
                        GetPlayerPos(playerid,x,y,z);
                        if(IsPlayerInRangeOfPoint(i,3.0,x,y,z))
						{
                            if(IsPlayerInAnyVehicle(playerid))
							{
                                PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/5hg5uq0p9u/mange_makers_mange_bjuder_official_video.mp3",x,y,z,distance,0);
mabye you can help


Re: Dialog Problem +rep - Littlehelper - 04.01.2012

Show me the actual line what is it?


Re: Dialog Problem +rep - Littlehelper - 04.01.2012

Hello,
i tried to find out what the error was but when i compiled the code you gave me it compiled without giving errors, however you are doing something wrong in your gm some where, please check it again.


Re: Dialog Problem +rep - N0FeaR - 04.01.2012

Quote:
Originally Posted by Littlehelper[MDZ]
Посмотреть сообщение
Hello,
i tried to find out what the error was but when i compiled the code you gave me it compiled without giving errors, however you are doing something wrong in your gm some where, please check it again.
when i remove it from my sricpt the sricpt works fine that weird


Re: Dialog Problem +rep - DRIFT_HUNTER - 04.01.2012

Maybe you dont have samp 0.3d server package (if you have more than one pawn in computer than it can be a bug)
If soo than you just run pawno.exe from your 0.3d server and click in top left on Open File and navigate to your script than just compile