Array manipulation
#8

Well if the array holds the name and you compare them with strcmp it should work. The name in the array isn't the same as the one passed to the function "GetPlayerID" else it would return the id the loop stops on. Or -1 if no name was matched. It should never return zero unless the name of id 0 is matched.
Reply


Messages In This Thread
Array manipulation ( Fixed thank you to all for the help) - by Hornet600 - 03.04.2011, 15:16
Re: Array manipulation - by iggy1 - 03.04.2011, 15:22
Re: Array manipulation - by Hornet600 - 03.04.2011, 15:23
Re: Array manipulation - by iggy1 - 03.04.2011, 15:24
Re: Array manipulation - by Hornet600 - 03.04.2011, 15:25
Re: Array manipulation - by iggy1 - 03.04.2011, 15:34
Re: Array manipulation - by Hornet600 - 03.04.2011, 15:41
Re: Array manipulation - by iggy1 - 03.04.2011, 15:45
Re: Array manipulation - by Hornet600 - 03.04.2011, 15:50
Re: Array manipulation - by Miguel - 03.04.2011, 15:51

Forum Jump:


Users browsing this thread: 6 Guest(s)