Assigning variables to cvars
im trying to write a war pluging for cs, iv got most of it working except i wanted to create a random password to secure the server.
what i need to know if its even possible, can you take a bunch of random numbers from a variable and assign it to the cvar sv_password ? heres what i got so far Code:
thanks |
maybe:
Code:
|
Re: Assigning variables to cvars
Code:
|
thanks will give that a try
|
thanks that works fine, but does any one have any ideas on how to fill the array with say 5 random numers?
i tried to use a while loop and feed it into the array that way, but it didnt work :( was something like this Code:
|
hevt you set pasword to 5 arrays?
new password[4] and why have password in the while, try to use ( i <= 5 ) |
i got this so far
Code:
this works fine but its only puts one integer into the variable password. Any ideas? |
never mind i did a more basic way, just assigned 1 random number to each space in the array by putting that random number code 5 times
Code:
|
this works well, too:
Code:
|
| All times are GMT -4. The time now is 16:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.