how can i make it
#10

Quote:
Originally Posted by BrianS123
Посмотреть сообщение
Thanks a lot i'll test it,
So i can type anything instead of "lockerid?" i choose what to call it?
Yeah. But it's best to have variables that make sense.
It could be like forward LoadLockers(LID, name[], value[]);

or it could be LoadLockers(reallylongunneededname,name[], value[]);
with doing it this way when you make the load callback it's going to be really long.

PHP код:
public LoadLocker(reallylongunneedednamename[], value[])
{
    
INI_String("Text"LockerInfo[reallylongunneededname][Name], 128);
    
INI_Float("LockerZ"LockerInfo[reallylongunneededname][lockerz]);
    
INI_Float("LockerY"LockerInfo[reallylongunneededname][lockery]);
    
INI_Float("LockerX"LockerInfo[reallylongunneededname][lockerx]);
    
INI_Int("LTeam"LockerInfo[reallylongunneededname][lTeam]);

And it doesn't look as professional and it looks messy. Best to keep it a sensible name.
Reply


Messages In This Thread
how can i make it - by BrianS123 - 27.08.2016, 15:53
Re: how can i make it - by WhiteGhost - 27.08.2016, 16:16
Re: how can i make it - by BrianS123 - 27.08.2016, 16:24
Re: how can i make it - by oMa37 - 27.08.2016, 16:52
Re: how can i make it - by BrianS123 - 27.08.2016, 19:04
Re: how can i make it - by BrianS123 - 28.08.2016, 09:34
Re: how can i make it - by Tass007 - 28.08.2016, 09:53
Re: how can i make it - by BrianS123 - 28.08.2016, 10:48
Re: how can i make it - by BrianS123 - 28.08.2016, 10:56
Re: how can i make it - by Tass007 - 28.08.2016, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)