Szerző Téma: Text  (Megtekintve 752 alkalommal)

Nem elérhető ALIEN

  • 1163
    • Profil megtekintése
Text
« Dátum: 2010. május 07. - 23:37:04 »
0 Show voters
Üdv, megint segítséget kérnék toletek mert van egy oylan problémám hogy:
Ha a string-et lehívom akkor nem ír ki semmit. Ha pedig nem hívom le akkor azt írja amit
éppen a string helyére írtam. És nem tudom hogy miért.  :-\\
Remélem tudtok segíteni. Tehát így néz ki a problémám:
 
public OnGameModeInit()
{      
       new string[128], playerid;
format(string, sizeof(string), \"Pont: %d  Deaths: %d \" ,GetPlayerScore(playerid), StaticInfo[playerid][Deaths]);
Static1 = TextDrawCreate(180.000000, 389.000000, string);
return 1;
}

Nem elérhető Lömpi

  • 1257
    • Profil megtekintése
Text
« Válasz #1 Dátum: 2010. május 08. - 01:42:55 »
0 Show voters
TextDrawSetString

Nem elérhető ALIEN

  • 1163
    • Profil megtekintése
Text
« Válasz #2 Dátum: 2010. május 08. - 12:06:09 »
0 Show voters
Kösz, de nem sikerül ezzel se. Nem tudom mért. Egyszeruen nem látom mi lehet a hiba.
« Utoljára szerkesztve: 2010. május 08. - 12:47:16 írta ALIEN »

Text
« Válasz #3 Dátum: 2010. május 08. - 14:23:28 »
0 Show voters
Idézetet írta: ALIEN date=1273268224\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"1596\" data-ipsquote-contentclass=\"forums_Topic

public OnGameModeInit()
{      
       new string[128], playerid;
format(string, sizeof(string), \"Pont: %d  Deaths: %d \" ,GetPlayerScore(playerid), StaticInfo[playerid][Deaths]);
Static1 = TextDrawCreate(180.000000, 389.000000, string);
return 1;
}

 

Na ne mar.OnGameModeInit-hez playerid-t irni?
Igy jo lesz:
public OnGameModeInit()
{       
Static1 = TextDrawCreate(180.000000, 389.000000, \"---\");
return 1;
}
public OnPlayerUpdate(playerid)
{
        new string[30];
format(string, sizeof(string), \"Pont: %d  Deaths: %d \" ,GetPlayerScore(playerid), StaticInfo[playerid][Deaths]);
        TextDrawSetString(Static1,string);
return 1;
}

Nem elérhető ALIEN

  • 1163
    • Profil megtekintése
Text
« Válasz #4 Dátum: 2010. május 08. - 14:26:50 »
0 Show voters
Ja közbe elfelejtettem mondani hogy a problémát megoldottam.
De azért kösz Csabesz  :-*. Témát zárom.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal