Function to return a string
#7

I don't really know what it does that. Try using break instead:
PHP Code:
new value = -1;
for(new 
0Server[0][quantCasas]; a++)
{
    if(!
strcmp(Casa[a][dono], name)) 
    {
        
printf("\"%s\""Casa[a][dono]);
        
value a;
        break;
}
return 
value
Reply


Messages In This Thread
Function to return a string - by Fel486 - 21.04.2015, 19:40
Re: Function to return a string - by [KHK]Khalid - 21.04.2015, 20:43
Re: Function to return a string - by Konstantinos - 21.04.2015, 20:57
Re: Function to return a string - by Fel486 - 21.04.2015, 21:12
Re: Function to return a string - by Konstantinos - 21.04.2015, 21:24
Re: Function to return a string - by Fel486 - 21.04.2015, 21:33
Re: Function to return a string - by Konstantinos - 21.04.2015, 21:39
Re: Function to return a string - by Fel486 - 21.04.2015, 21:50

Forum Jump:


Users browsing this thread: 2 Guest(s)