fuel system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fuel system (
/showthread.php?tid=151337)
fuel system -
Kar - 30.05.2010
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?
Re: fuel system -
coole210 - 30.05.2010
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)
Re: fuel system -
Antonio [G-RP] - 30.05.2010
If only people made their own codes, instead of stealing from other scripts.
Re: fuel system -
ipsBruno - 30.05.2010
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
Re: fuel system -
Kar - 30.05.2010
....