Jump to content
  • 0

[Problema] SetPVarInt/GetPVarInt


KenT

Question

salut am niste probleme la un server nu stiu daca is stiti dar se numeste XTR-Zone (daca il aveti fara errori datimi PM ) asa sa va zic despre problema mea.In acest rand: KenT\Desktop\new1\gamemodes\xtr.pwn(5949) : error 017: undefined symbol "SetPVarInt"

				new Str[ 25 ];
				SetPVarInt( playerid, "RadioC", -1 );
				GetPVarString( playerid, "Radio", Str, 25 );
				SetPVarInt( playerid, "RadioCount", listitem );
				for ( new i = 0; i < RadioCount + 1; i++ ) Audio_Stop(playerid, i);
				new Str2[ 129 ];
				format( Str2, sizeof Str2,"You stopped: ~r~~h~%s~w~.~n~~n~Any other sounds, music, etc... that were playing have been turned off!",Str );
				Info(playerid, Str2, 5000);
			}
			else
			{
			    for ( new i = 0; i < RadioCount + 1; i++ ){ Audio_Stop(playerid, i);}

        		Audio_PlayStreamed( playerid, R_DATA[ listitem ][ RadioURL ] );
        		SetPVarString( playerid, "Radio", R_DATA[ listitem ][ RadioName ] );
				SetPVarInt( playerid, "RadioC", R_DATA[ listitem ][ RadioID ] );
				new Str[ 256 ];
				format( Str, sizeof Str, "You started playing: ~r~~h~%s", R_DATA[ listitem ][ RadioName ] );
				Info( playerid, Str, 5000 );
        	}
    	}
    	else if ( listitem == RadioCount + 1 )
		{
			if ( GetPVarInt( playerid, "RadioC" ) == -1 )
	            return cmd_radio( playerid, ""),SendError( playerid, "No radio playing!");

			ShowDialog( playerid, RadioVolume, DIALOG_STYLE_INPUT, "{FFFFFF}Radio Volume", "{FFFFFF}Set your radio's volume\n"COL_YELLOW"Volume 1 - 100", "Set", "Back" );
		}
		else if ( listitem == RadioCount + 2 )
		{
			if ( GetPVarInt( playerid, "RadioC" ) == -1 )
	            return cmd_radio( playerid, ""),SendError( playerid, "No radio playing!");
2.Alta erroare cu : xtr.pwn(5957) : error 017: undefined symbol "GetPVarInt. Uitativa randul:
   	else if ( listitem == RadioCount + 1 )
		{
			if ( GetPVarInt( playerid, "RadioC" ) == -1 )
	            return cmd_radio( playerid, ""),SendError( playerid, "No radio playing!");

			ShowDialog( playerid, RadioVolume, DIALOG_STYLE_INPUT, "{FFFFFF}Radio Volume", "{FFFFFF}Set your radio's volume\n"COL_YELLOW"Volume 1 - 100", "Set", "Back" );
		}
		else if ( listitem == RadioCount + 2 )
		{
			if ( GetPVarInt( playerid, "RadioC" ) == -1 )
	            return cmd_radio( playerid, ""),SendError( playerid, "No radio playing!");

			ShowDialog( playerid, RadioFX, DIALOG_STYLE_LIST, "{FFFFFF}Radio FX Effect", ""CLB"Chorus\n\
																			"CLB"Compression\n\
																			"CLB"Distortion\n\
																			"CLB"Echo\n\
																			"CLB"Flanger\n\
																			"CLB"Gargle\n\
																			"CLB"I3DL2 Reverb\n\
																			"CLB"Parametric Equalizer\n\
																			"CLB"Reverb\n\
																			"COL_RED"Remove FX Effect", "Set", "Back" );
		}
        else if ( listitem == RadioCount + 3 )
		{
			if ( GetPVarInt( playerid, "RadioC" ) == -1 )
	            return cmd_radio( playerid, ""),SendError( playerid, "No radio playing!");

			ShowEAXOptions( playerid );
		}
        else if ( listitem == RadioCount + 4 ) ShowRadioInfo( playerid );

PS:Am pus cele mai noi include astea streamer....

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

Zice ca nu sunt definite definestele.

Si iati si :

Includerile RC.5

am facut asa si mia aparut doar 1 erroar din streamer new1\pawno\include\Streamer.inc(230) : error 074: #define pattern must start with an alphabetic character ma ajuti?

Link to comment
Share on other sites

am facut asa si mia aparut doar 1 erroar din streamer new1\pawno\include\Streamer.inc(230) : error 074: #define pattern must start with an alphabetic character ma ajuti?

Ia streamer.inc din nou: http://www.sa-mp.ro/forum/index.php/topic,7004.0.html
Link to comment
Share on other sites

Ai incercat sa schimbi streameru :-?

da.L'am schimbat asta nou R5 dar inainte merge bine  :(( si acum dupa ce am facut aia mia dat 48 warnings si pornesc sv si intru ma logez bine apoi tastez orice comanda si imi zice "SERVER Unkown Command" ce sa fac? dac am a poate ajuta cineva datimki Ad pe mess: mqangel

Link to comment
Share on other sites

Mai am inste probleme cu astea:                        error 033: array must be indexed (variable "tmp")

                gamemodes\Fost-mQ.pwn(29909) : error 017: undefined symbol "strtok"

doar cu astea la fiecare rand ce sa fac?

Link to comment
Share on other sites

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.