fuel system
#1

http://solidfiles.com/d/1fd0/

Code:
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(473) : error 017: undefined symbol "cmd"
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(478) : error 017: undefined symbol "strtok"
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(478) : error 033: array must be indexed (variable "x_info")
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(481) : error 017: undefined symbol "COLOR_LIGHTYELLOW2"
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(486) : error 017: undefined symbol "ShowFuel"
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(486) : warning 215: expression has no effect
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(486) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(486) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Kar\Desktop\FUELSC~1.PWN(486) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
could someone help?
Reply
#2

Most of it is not defined stuff like COLOR_LIGHTYELLOW2..

cmd is a variable added usually in OnPlayerCommandText

strtok is a stock function (wiki.sa-mp.com/wiki/strtok)
Reply
#3

If only people made their own codes, instead of stealing from other scripts.
Reply
#4

Final GM:
Code:
strtok(const string[], &index)
{
	new length = strlen(string);
	while ((index < length) && (string[index] <= ' '))
	{
		index++;
	}
 
	new offset = index;
	new result[20];
	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
	{
		result[index - offset] = string[index];
		index++;
	}
	result[index - offset] = EOS;
	return result;
}
Top GM:
Code:
new ShowFuel[MAX_PLAYERS];
#define COLOR_LIGHTYELLOW2 0xFFFF99AA
Reply
#5

....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)