beginner race server

Started by habi, Feb 17, 2020, 04:40 PM

Previous topic - Next topic

habi

#15
thanks . i have seen it today only.

EnForcer


gtacheng

AN ERROR HAS OCCURED [the index 'Name' does not exist]

CALLSTACK
*FUNCTION [onPlayerRaceCommand()] scripts/race.nut line [51]

SHy^

Quote from: GTA-Cheng on Aug 14, 2020, 09:01 AMAN ERROR HAS OCCURED [the index 'Name' does not exist]

CALLSTACK
*FUNCTION [onPlayerRaceCommand()] scripts/race.nut line [51]
Post the error line.

habi

#19
well, i myself looked into it and found it is a bug.

Thanks GTA-Cheng for finding it

Change line 51 to
if(player.Name!=author)return;
Also change line 41 to
if(player.Name!=author)return;
(There was a author.Name which caused problem. Now fixed )

Also there is a change in line 96
if(a>0 && a<=race_list.len())name=race_list[a-1];( this '<=' is required )

I will update the files above.

gtacheng

Thank you for this great job, I like him!!! ;)