Szerző Téma: Nem jó a string  (Megtekintve 467 alkalommal)

herban

  • Vendég
Nem jó a string
« Dátum: 2010. december 12. - 20:32:33 »
0 Show voters
Már bocs
De az elõzõ ötletek nem jók..
 
new HackerName[MAX_PLAYER_NAME];
  GetPlayerName(playerid, HackerName, sizeof(HackerName));
  new string[128];
format(string, sizeof(string), \"~r~ ~w~%s csatlakozott a serverhez!\", HackerName);
InfoTextDrawCreate (i, \"~r~ ~w~%s csatlakozott a serverhez!\",string);

Nem elérhető Stray

  • 617
    • Profil megtekintése
Nem jó a string
« Válasz #1 Dátum: 2010. december 12. - 20:41:55 »
0 Show voters
Már nem azért.. De annak még mindig semmi értelme hogy \" sanyi csatlakozott a szerverhez! csatlakozott a szerverhez\".. De te tudod..

herban

  • Vendég
Nem jó a string
« Válasz #2 Dátum: 2010. december 12. - 20:44:16 »
0 Show voters
Hát azért kértem a segíted mert nem tudom megcsinálni
Az elõzõ ötletet amit írtál ezt írta ki:
 %s csatlakozott a szerverhez

Yeaseiro

  • Vendég
Nem jó a string
« Válasz #3 Dátum: 2010. december 12. - 20:55:45 »
0 Show voters
ON:
van benne pár hiba de így nem egyszerûbb?:
 

new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
InfoTextDrawCreate (i, \"~r~%s ~w~csatlakozott a serverhez!\", name);

 
ha ez nem jó akkor:
 

new string[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), \"\"~r~%s ~w~csatlakozott a serverhez!\", name);
InfoTextDrawCreate (playerid, string);

 
vagy ahogy te írtad:
 

new string[256];
new HackerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, HackerName, sizeof(HackerName));
format(string, sizeof(string), \"~r~ ~w~%s csatlakozott a serverhez!\", HackerName);
InfoTextDrawCreate (i, string);

 
OFF:
Stray, ne szólj mások dolgába! Köszönöm :)
« Utoljára szerkesztve: 2010. december 12. - 21:04:02 írta Orbit »

herban

  • Vendég
Nem jó a string
« Válasz #4 Dátum: 2010. december 12. - 21:18:57 »
0 Show voters
Kösz:D
Zárok

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal