Peršokti į turinį
  • ŽAIDIMAI
  • , ŽAIDIMAI
  • ŽAIDIMAI

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4411 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Recommended Posts

CMD:masinos ( playerid ) {
	new string [ 1020 ] , string2 [ 300 ];
	new veh = playerCar1 [ playerid ] ;
	format ( string2 , sizeof ( string2 ) , "{bebebe}Maðinos {00aa46}%s {bebebe}valdymas\n\n" , VehicleNames [ vehicleDB [ veh ] [ vModel ] - 400 ] ) ;
	strcat ( string , string2 , sizeof ( string ) );
	format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Degalø kiekis: {ffffff}%d litrø\n" , vehicleDB [ veh ] [ gas ] ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Rida: {ffffff}%.02f KM\n" , vehicleDB [ veh ] [ Rida ] ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Numeriai: {ffffff}%s\n" , vehicleDB [ veh ] [ numeriai ] ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Statusas: {ffffff}%s\n" , getCarStatus ( veh ) ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Durys: {ffffff}%s\n" , getDoorssStatus ( veh ) ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Maðinos pavadinimas: {ffffff}%s" , VehicleNames [ vehicleDB [ veh ] [ vModel ] - 400 ] ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) ,
	"\n\n{ffffff}Tr.priemonës komandos:\n\
	\t{ffffff}» {00aa46}/uzraktas {ffffff}- {00aa46}uþrakinti/atrakinti tr.priemonæ\n\
	\t{ffffff}» {00aa46}/carmapas {ffffff}- {00aa46}rasti tr.priemonæ\n\
	\t{ffffff}» {00aa46}/parduoti {ffffff}- {00aa46}parduoti tr.priemonæ" ) ;
	strcat ( string , string2 , sizeof ( string ) ) ;
	format ( string2 , sizeof ( string2 ) , "\n\n{ff0000}Maðinos taisymo kaina: {ffffff}6.000LT" ) ; strcat ( string , string2 , sizeof ( string ) ) ;
	ShowPlayerDialog ( playerid , 14100 , DIALOG_STYLE_MSGBOX , "{ffffff}Pirmos maðinos valdymas" , string , "Taisyti" , "Uþdaryti" ) ;
}

Dialogas nepasirodo, o server_log'uose rodo štai tokius dalykus:

[21:39:08] [debug] Run time error 4: "Array index out of bounds"
[21:39:08] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:39:08] [debug] AMX backtrace:
[21:39:08] [debug] #0 001ade84 in loadPlayerCar1 (playerid=0) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\gamemodes\band7.pwn:29365
[21:39:08] [debug] #1 000390ac in public OnPlayerSpawn (playerid=0) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\gamemodes\band7.pwn:3166
[21:39:13] [COMMAND]: Whisky_Jack /masinos
[21:39:13] [debug] Run time error 4: "Array index out of bounds"
[21:39:13] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:39:13] [debug] AMX backtrace:
[21:39:13] [debug] #0 0004ea80 in public cmd_masinos (playerid=0, ... <1 variable argument>) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\gamemodes\band7.pwn:4508
[21:39:13] [debug] #1 native CallLocalFunction () [00472ef0] from samp-server.exe
[21:39:13] [debug] #2 0000092c in public OnPlayerCommandText (playerid=0, cmdtext[]=@0x0035f2a0 "/masinos") at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\pawno\include\zcmd.inc:103
[21:39:15] [debug] Run time error 4: "Array index out of bounds"
[21:39:15] [debug]  Accessing element at index 65535 past array upper bound 1999
[21:39:15] [debug] AMX backtrace:
[21:39:15] [debug] #0 001b07f4 in savePlayerCar1 (playerid=0) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\gamemodes\band7.pwn:29455
[21:39:15] [debug] #1 00034bc8 in public Itter_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\gamemodes\band7.pwn:2882
[21:39:15] [debug] #2 native CallLocalFunction () [00472ef0] from samp-server.exe
[21:39:15] [debug] #3 0000b11c in public Streamer_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\pawno\include\foreach.inc:643
[21:39:15] [debug] #4 000077fc in public SSCANF_OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\pawno\include\streamer.inc:325
[21:39:15] [debug] #5 native CallLocalFunction () [00472ef0] from samp-server.exe
[21:39:15] [debug] #6 00000fe0 in public OnPlayerDisconnect (playerid=0, reason=1) at C:\Users\BALYS\Desktop\@ sinVILLAGE.LT\pawno\include\sscanf2.inc:141
(redaguota)
CMD:masinos ( playerid ) {
    new string2 [ 1048 ], string [ 512 ];
    format( string, sizeof( string ), "" );
    new veh = playerCar1 [ playerid ] ;
    format ( string2 , sizeof ( string2 ) , "{bebebe}Maðinos {00aa46}%s {bebebe}valdymas\n\n" , VehicleNames [ vehicleDB [ veh ] [ vModel ] - 400 ] ) ;
    format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Degalø kiekis: {ffffff}%d litrø\n" , vehicleDB [ veh ] [ gas ] ) ;
    format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Rida: {ffffff}%.02f KM\n" , vehicleDB [ veh ] [ Rida ] ) ;
    format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Numeriai: {ffffff}%s\n" , vehicleDB [ veh ] [ numeriai ] ) ;
    format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Statusas: {ffffff}%s\n" , getCarStatus ( veh ) ) ;
    format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Durys: {ffffff}%s\n" , getDoorssStatus ( veh ) ) ;
    format ( string2 , sizeof ( string2 ) , "\t{ffffff}» {00aa46}Maðinos pavadinimas: {ffffff}%s" , VehicleNames [ vehicleDB [ veh ] [ vModel ] - 400 ] ) ;
    format ( string2 , sizeof ( string2 ) ,
    "\n\n{ffffff}Tr.priemonës komandos:\n\
    \t{ffffff}» {00aa46}/uzraktas {ffffff}- {00aa46}uþrakinti/atrakinti tr.priemonæ\n\
    \t{ffffff}» {00aa46}/carmapas {ffffff}- {00aa46}rasti tr.priemonæ\n\
    \t{ffffff}» {00aa46}/parduoti {ffffff}- {00aa46}parduoti tr.priemonæ" ) ;
    format ( string2 , sizeof ( string2 ) , "\n\n{ff0000}Maðinos taisymo kaina: {ffffff}6.000LT" ) ;
    strcat( string, string2 );
    ShowPlayerDialog ( playerid , 14100 , DIALOG_STYLE_MSGBOX , "{ffffff}Pirmos maðinos valdymas" , string , "Taisyti" , "Uþdaryti" ) ;
}

Jei veiks dialogas, stringus susimažink.

Redaguota , nario Rimas`

Ši tema yra neaktyvi. Paskutinis pranešimas šioje temoje buvo prieš 4411 dienas (-ų). Patariame sukurti naują temą, o ne rašyti naują pranešimą.

Už neaktyvių temų prikėlimą galite sulaukti įspėjimo ir pranešimo pašalinimo!

Prisijungti prie diskusijos

Palikti atsakymą galite iš karto, o užsiregistruoti vėliau. Jeigu jau turite paskyrą mūsų forume, Prisijunkite.

Svečias
Atsakyti šioje temoje...

×   Įklijuotas tekstas turi teksto formatavimą.   Pašalinti teksto formatavimą

  Galimi tik 75 veidukai.

×   Nuoroda buvo automatiškai įterpta.   Įterpti nuorodą paprastai

×   Jūsų ankstesnis pranešimas buvo atkurtas.   Išvalyti redaktorių

×   Jūs negalite įkelti nuotraukas tiesiogiai.Įkelkite arba įdėkite nuotraukas iš URL.

  • Šiame puslapyje naršo:   0 nariai

    • Nėra registruotų narių peržiūrinčių šį forumą.

Skelbimai


×
×
  • Sukurti naują...