Array with a string, an integer and a float
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/Keywords:Initialisers#enum

PHP код:
enum e_array
{
    
e_string[32], // change the value to "fit" the whole text
    
e_integer,
    
Floate_float
};
new array[][
e_array] = 
{
    {
"string"01.0}
};
get_data(indexa[], &b, &Floatc
{
    if (!(
<= index sizeof array)) return; // invalid index, prevent from run time error 4
  
    
strcat((a[0] = EOSa), array[index][e_string], 32); // reset and copy
    
= array[index][e_integer];
    
= array[index][e_float];

Even though I don't understand why would you want to call a function when you can use "array" directly.
Oops, thank you. It was just an example.
Reply


Messages In This Thread
Array with a string, an integer and a float - by atom01100 - 11.08.2016, 10:23
Re: Array with a string, an integer and a float - by Konstantinos - 11.08.2016, 10:33
Re: Array with a string, an integer and a float - by atom01100 - 11.08.2016, 11:00

Forum Jump:


Users browsing this thread: 2 Guest(s)