Jump to content
  • 0

Cum maresc string asta


crazyzee

Question

Salut , am si eu acest ReactionTest :

[pawn]public ReactionTest()

{

KillTimer(ReactionTimer);

new string[80];

if(PassiveMode == PASSIVE_OFF)

{

new Rstr[] = "aAbBcCdDeEfFgGhHIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ0123456789";//Characters that will appear in the reaction test. Small "i" removed as it looks the same as a capital "i" in game.

for (new i = 0; i < 9; i++)ReactionString = Rstr[random(sizeof(Rstr))];

ReactionCash = random( MAX_WINNINGS - MIN_WINNINGS ) + MIN_WINNINGS;

}

else PassiveMode = PASSIVE_OFF;

ReactionState = R_STATE_ACTIVE;

format(string,sizeof(string),"{FFFFFF}Primul care scrie {00CC00}%s {FFFFFF}castiga {00CC00}%d$!",ReactionString,ReactionCash);

SendClientMessageToAll(0xDA1800FF,string);

ReactionTimer = SetTimer("ReactionTest",REACTION_TIME*1000*60,true);

return 1;

}[/pawn]

Vreau ca aici sa pun asa : [pawn]format(string,sizeof(string),"{FFFFFF}[{FF8000}MegaTyper{FFFFFF}]{FFFFFF}Primul care scrie {00CC00}%s {FFFFFF}castiga {00CC00}%d$!",ReactionString,ReactionCash);[/pawn]

nu stiu cum sa maresc string sa afiseze tot acest text ....

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Trebuie sa faci asa:

1.Cauta variabila "string"

Va arata cam asa:[pawn]new string[50];//50 este marimea variabilei![/pawn]

2.Schimbi 50 cu ceva mai mare.

GATA!TOCMAI AI MARIT MARIMEA STRINGULUI(scuzati pleonasmul) :))

Multam +1 respect ;)

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.