Szerző Téma: 5mp-s függvény kérdés  (Megtekintve 591 alkalommal)

5mp-s függvény kérdés
« Dátum: 2012. Augusztus 03. - 09:53:22 »
0 Show voters
Hali...
Mivel lehetne azt megcsin. hogy,ha a player elér egy X pontot,megcsinál néhány függvényt :D

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
5mp-s függvény kérdés
« Válasz #1 Dátum: 2012. Augusztus 03. - 10:03:28 »
0 Show voters
Mód elejére
 

new PlayerScore;

 
Ezt oda tedd ahol elõ szeretnéd hívni a függvényt.. pl: OnPlayerSpawn -nál.
 

if(PlayerScore >= 99) // A 99 az a pont majd írd átt.
{
//többi cuccokat!
}
« Utoljára szerkesztve: 2012. Augusztus 03. - 10:06:13 írta ZyZu »

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
5mp-s függvény kérdés
« Válasz #2 Dátum: 2012. Augusztus 03. - 10:10:54 »
0 Show voters
Idézetet írta: ZyZu date=1343981008\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25414\" data-ipsquote-contentclass=\"forums_Topic
Mód elejére
 

new PlayerScore;

 
Ezt oda tedd ahol elõ szeretnéd hívni a függvényt.. pl: OnPlayerSpawn -nál.
 

if(PlayerScore >= 99) // A 99 az a pont majd írd átt.
{
//többi cuccokat!
}

 

ez már most nem jó.
 
new PlayerScore = GetPlayerScore(playerid);
if(PlayerScore >= 99) return SendClientMessage(playerid,-1,\"Nincs 99 pontod!\");
{
// funkciók
}
return 1;
}

 
tedd akárhova           

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
5mp-s függvény kérdés
« Válasz #3 Dátum: 2012. Augusztus 03. - 10:21:00 »
0 Show voters
Idézetet írta: ZzzzzZ date=1343981454\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25414\" data-ipsquote-contentclass=\"forums_Topic


Mód elejére
 

new PlayerScore;

 
Ezt oda tedd ahol elõ szeretnéd hívni a függvényt.. pl: OnPlayerSpawn -nál.
 

if(PlayerScore >= 99) // A 99 az a pont majd írd átt.
{
//többi cuccokat!
}

 

ez már most nem jó.
 
new PlayerScore = GetPlayerScore(playerid);
if(PlayerScore >= 99) return SendClientMessage(playerid,-1,\"Nincs 99 pontod!\");
{
// funkciók
}
return 1;
}

 
tedd akárhova             
 
[/quote]
Mond, hogy csak a Comedy Central fellépésére gyakorolsz.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal