if condition for comparing indexed array to number
new array[32] // (array value is number 7)
if (array[31] == 7) { action } but this does not work, correct me plz |
Re: if condition for comparing indexed array to number
Should work, show the full code.
|
Re: if condition for comparing indexed array to number
Code:
public client_connect(id) |
Re: if condition for comparing indexed array to number
new szRate[32]
get_user_info(id, "rate", szRate, charsmax( szRate )) new iRate = str_to_num( szRate ) if( iRate < 10000 ) set_user_info(id, "rate", "10000") |
Re: if condition for comparing indexed array to number
yup, i was reading funcwiki for str_to_num and found same, but can't condition "if" work with indexed arrays?
|
Re: if condition for comparing indexed array to number
Quote:
|
| All times are GMT -4. The time now is 16:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.