Author Topic: !mycars command  (Read 3081 times)

0 Members and 1 Guest are viewing this topic.

Offline Jancis_LV

  • Street Thug
  • *
  • Posts: 37
    • View Profile
    • Latvian Vice City
!mycars command
« on: March 18, 2010, 09:03:22 pm »
Are possible to make function, that checks file info (Vehicle owner file) and returns Id's of that file

For example:
vehicle owners file:

1=Sunshine Autos
2=Jancis
3=Jancis
4=Sunshine Autos

Function will return numbers, where is write Jancis, and that will be in list like: 2,3
I hope you something understand, i don't speak english very well.
Latvian Vice City server
78.84.47.75:5192

Offline Boss

  • VC:MP Beta Tester (inactive)
  • Made Man
  • *
  • Posts: 229
  • Boss
    • View Profile
    • TDH Clan Site
Re: !mycars command
« Reply #1 on: March 18, 2010, 09:46:58 pm »
Why would a player own properties twice? :/

Also, didn't understand much of what you said, but you can write to files and read from them with functions from file.inc: http://tdhclan.ru/wiki/index.php/Functions#file.inc

Offline Jancis_LV

  • Street Thug
  • *
  • Posts: 37
    • View Profile
    • Latvian Vice City
Re: !mycars command
« Reply #2 on: March 18, 2010, 10:05:10 pm »
You didn't understand what i mean, that are cars, owner of ID 2 and 3 is me
Latvian Vice City server
78.84.47.75:5192