Salut, cunoaste cineva functia de selectare consecutiva?
Am gasit doar GetRandomInt pe source api
[rezolvat] Functie GetInt consecutiv
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
- xSaG
- Membru, skill +1
- Posts: 225
- Joined: 11 Aug 2017, 00:21
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
- Been thanked: 5 times
- Contact:
Last edited by t3d on 26 Aug 2017, 10:51, edited 1 time in total.
Reason: trecut ca si rezolvat.
Reason: trecut ca si rezolvat.
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău
-
- Membru, skill +1
- Posts: 159
- Joined: 24 Jun 2017, 02:10
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Code: Select all
public MyFunction( ) {
switch( 1,2,3,4,5,6,7,8,9,10 ) {
case 1: {
PrintToChatAll( "Numarul 1" )
}
case 2: {
PrintToChatAll( "Numarul 2" )
}
case 3: {
PrintToChatAll( "Numarul 3" )
}
case 4: {
PrintToChatAll( "Numarul 4" )
}
case 5: {
PrintToChatAll( "Numarul 5" )
}
case 6: {
PrintToChatAll( "Numarul 6" )
}
case 7: {
PrintToChatAll( "Numarul 7" )
}
case 8: {
PrintToChatAll( "Numarul 8" )
}
case 9: {
PrintToChatAll( "Numarul 9" )
}
case 10: {
PrintToChatAll( "Numarul 10" )
}
}
}
- xSaG
- Membru, skill +1
- Posts: 225
- Joined: 11 Aug 2017, 00:21
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Has thanked: 1 time
- Been thanked: 5 times
- Contact:
Merge pentru ?_()_ wrote:?Code: Select all
public MyFunction( ) { switch( 1,2,3,4,5,6,7,8,9,10 ) { case 1: { PrintToChatAll( "Numarul 1" ) } case 2: { PrintToChatAll( "Numarul 2" ) } case 3: { PrintToChatAll( "Numarul 3" ) } case 4: { PrintToChatAll( "Numarul 4" ) } case 5: { PrintToChatAll( "Numarul 5" ) } case 6: { PrintToChatAll( "Numarul 6" ) } case 7: { PrintToChatAll( "Numarul 7" ) } case 8: { PrintToChatAll( "Numarul 8" ) } case 9: { PrintToChatAll( "Numarul 9" ) } case 10: { PrintToChatAll( "Numarul 10" ) } } }
Code: Select all
static const String: MesajeChat[ ][ ] =
{
" \x05[Bețivii]\x10 Limbajul vulgar se va pedepsi cu \x03GAG\x01/\x03Mute \x10!",
" \x05[Bețivii]\x10 Scrieţi \x03/rs \x10pentru a vă reseta scorul \x01(\x06S, K, D & A\x01)\x10.",
" \x05[Bețivii]\x10 Pentru a deveni \x06HELPER \x10aveţi nevoie de \x0350 \x10de ore."
}
Edit: nu mai conteaza am rezolvat :) mersi !
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău
-
- Membru, skill +1
- Posts: 159
- Joined: 24 Jun 2017, 02:10
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Pai nu poti face asa pentru string-uri, nu ai zis pentru ce vrei sa folosesti.
-
- Utilizator neserios (tepar)
- Posts: 1695
- Joined: 16 Mar 2016, 11:22
- Detinator Steam: Da
- Reputatie: Restrictie moderator!
Restrictie mesaje private
Fost Membru Club eXtreamCS (6 luni)
Nume anterior : T3ED
Utilizator neserios (tepar) - Fond eXtream: 0