[rezolvat] Functie GetInt consecutiv

Dacă deții un server dedicat și ai o problemă cu acesta, poți întreba în această categorie cum se rezolvă problema respectivă.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Locked
User avatar
xSaG
Membru, skill +1
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:

24 Aug 2017, 17:08

Salut, cunoaste cineva functia de selectare consecutiva?

Am gasit doar GetRandomInt pe source api
Last edited by t3d on 26 Aug 2017, 10:51, edited 1 time in total.
Reason: trecut ca si rezolvat.
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău
RoyalServer
_()_
Membru, skill +1
Membru, skill +1
Posts: 159
Joined: 24 Jun 2017, 02:10
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

24 Aug 2017, 18:00

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" )
		}
	}
}
?
User avatar
xSaG
Membru, skill +1
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:

24 Aug 2017, 18:07

_()_ 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" )
		}
	}
}
?
Merge pentru ?

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."
}
Ca eu am incercat cu swtich si nu mi-a mers

Edit: nu mai conteaza am rezolvat :) mersi ! :*
www.sourcemod.ro - Tot ce ai nevoie pentru serverul tău
_()_
Membru, skill +1
Membru, skill +1
Posts: 159
Joined: 24 Jun 2017, 02:10
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

24 Aug 2017, 18:23

Pai nu poti face asa pentru string-uri, nu ai zis pentru ce vrei sa folosesti.
t3d
Utilizator neserios (tepar)
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

26 Aug 2017, 10:51

Ai rezolvat, topic closed.
Lista tranzactii extreamcs: | Afiseaza codul
LISTA TRANZACTII EXTREAMCS.COM:
anunturi/dau-105eur-paypal-transferbancar-moneygram-t346743.html
anunturi/dau-125-lei-paysafecard-paypal-t336275.html
anunturi/dau-100-lei-paysafe-19euro-paypal-t332637.html
anunturi/dau-lei-paysafecard-euro-paypal-t332553.html
anunturi/dau-lei-paysafecard-paypal-t332463.html
anunturi/lei-paysafecard-t332130-12.html
anunturi/vand-skins-t331811.html
anunturi/dau-paysafe-paypal-t331631.html
anunturi/dau-paysafecard-paypal-t330515.html
anunturi/caut-designer-photoshop-t327564.html
anunturi/cumpar-cont-lol-t316133.html
anunturi/vand-cont-lol-euw-gold-platin-gold-t339823.html
anunturi/dau-lei-psc-paypal-t341899.html
anunturi/vand-lei-paysafecard-anglia-eur-paypal-t342092.html
anunturi/dau-lei-psc-paypal-t342080.html
anunturi/vand-lei-paysafecard-paypal-t342454.html
anunturi/vand-addons-uri-t342421.html
post2624864.html#p2624864
anunturi/vand-cont-steam-iteme-t342799.html
anunturi/dau-100-lei-psc-paypal-t344372.html
anunturi/dau-lei-psf-eur-t354998.html
Locked

Return to “Probleme la servere dedicate de Counter-Strike: Global Offensive”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests