Szerző Téma: Ismeretlen Project  (Megtekintve 229 alkalommal)

Koncz_Norbert

  • Vendég
Ismeretlen Project
« Dátum: 2011. Október 19. - 19:18:27 »
0 Show voters
Mostanában nincs sok dolgom, ezért az LVDM módot egy kicsit módosítgatom.
Egyszerû elkészíteni, és nem lehetetlen megoldani. Folytatások persze lesznek.
Mai munkám eredménye...
\"hostname.bmp\"

Nem elérhető Kiss

  • 1962
    • Profil megtekintése
Ismeretlen Project
« Válasz #1 Dátum: 2011. Október 19. - 21:21:43 »
0 Show voters
nemértelek egyszer kilépsz a sampos életedbõl mostmeg megint valami projectet csinálsz há hogyan vanez ?:D

Koncz_Norbert

  • Vendég
Ismeretlen Project
« Válasz #2 Dátum: 2011. Október 19. - 22:08:34 »
0 Show voters
Idézetet írta: Baluuu date=1319052103\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"12614\" data-ipsquote-contentclass=\"forums_Topic
nemértelek egyszer kilépsz a sampos életedbõl mostmeg megint valami projectet csinálsz há hogyan vanez ?:D
 
Alkalmatlan hely a megbeszéléshez, de...
Kitiltottak a SimsMP teambõl, mert a CRun ( eljárás ) boolean biztonsági rést módosítottam, így a külsõ programokat
blokkolja a kliens. Engem persze \"bugfixer\"-nek vettek fel, nem fejlesztõnek. Most újra itt vagyok.
Egyébként...
\"command.bmp\"
[pawn]
#include <a_samp>
#include \"..\\include\\coldface.inc\"
main()
{
new
    string1[ GetVariableSize( ) ], //            \"a\" ==  2
    string2[ GetVariableSize( ) ], //         \"test\" ==  5
    string3[ GetVariableSize( ) ], //     \"coldface\" ==  9
    string4[ GetVariableSize( ) ], //   \"0xC01DFACE\" == 13
    string5[ GetVariableSize( ) ]  // \"Hello World!\" == 15
;
Format( string1, sizeof( string1 ), \"a\"              );
Format( string2, sizeof( string2 ), \"test\"           );
Format( string3, sizeof( string3 ), \"coldface\"       );
Format( string4, sizeof( string4 ), \"0xC01DFACE\"     );
Format( string5, sizeof( string5 ), \"Hello World!\"   );
printf( string1 );
printf( string2 );
printf( string3 );
printf( string4 );
printf( string5 );
}
[/pawn]
Két új funkció. GetVariableSize(), Format()
GetVariabeSize lekérdezi a Format funkciót és kiszámolja a \"const format[]\" paramétert és visszatér
azzal az értékkel amennyi karakter van megadva. A deklaráció lényegtelen.
 8)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal