Help with my garage system
#6

Quote:
Originally Posted by Hellman92
Посмотреть сообщение
Like this?

PHP код:
Float:gEnterX
Quote:
Originally Posted by Vince
Посмотреть сообщение
I want to add that it is terrible practice to open and close the file for each line written. This leads to lots of unnecessary IO and it is very slow. Open file, loop, close files. The structure also does not follow the INI file format so it shouldn't realistically have the extension .ini, either.
So how should be it done then?

Quote:
Originally Posted by -CaRRoT
Посмотреть сообщение
Код:
gOwner
is a string, should be
Код:
gOwner[MAX_PLAYER_NAME],
You also need to add Float: infront of these vars
Код:
    gEnterX, 
    gEnterY, 
    gEnterZ, 
    gEnterAngle, 
    gExitX, 
    gExitY, 
    gExitZ, 
    gExitAngle,
Plus you really should code it yourself instead of copying another system and changing the vars as it wont teach you anything.

Код:
GarageInfo[idx][hPickupID]);
Clearly copied from a house system, you didnt switch the h with a g
I copy my own house system and convert into a garage system lol.
Reply


Messages In This Thread
Help with my garage system - by Hellman92 - 18.02.2016, 21:00
Re: Help with my garage system - by xTURBOx - 19.02.2016, 03:18
Re: Help with my garage system - by -CaRRoT - 19.02.2016, 03:56
Re: Help with my garage system - by Vince - 19.02.2016, 05:21
Re: Help with my garage system - by NelsonM - 19.02.2016, 05:42
Re: Help with my garage system - by Hellman92 - 19.02.2016, 06:00
Re: Help with my garage system - by Vince - 19.02.2016, 11:56
Re: Help with my garage system - by Hellman92 - 19.02.2016, 12:25

Forum Jump:


Users browsing this thread: 1 Guest(s)