Need help, check for a location ID.
#1

Hello people!

I need a small help to check if a location ID has already been added.

Let me elaborate more; I have a /addload [loadid] [start] [end] command which imports the start point's location ID and end point's location ID to the selected load's row. The location IDs in the field are formatted and imported in the following way

Код:
10|20|30|40|50|60|70
And split up with sscanf to store in the array. So far, everything works fine. Now, my problem here is; the command user can import the same location ID twice or more. How can I check if the location ID the command user put has already been added?

I tried fetching the result in a local array then looped through it and compared the IDs with the desired one but didn't work.

Any help?

If any code is required, let me know.
Reply


Messages In This Thread
Need help, check for a location ID. - by Sjn - 27.06.2016, 08:33
Re: Need help, check for a location ID. - by Matz - 27.06.2016, 12:02
Re: Need help, check for a location ID. - by F1N4L - 27.06.2016, 12:08
Re: Need help, check for a location ID. - by Stinged - 27.06.2016, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)