C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(142) : warning 217: loose indentation C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(192) : error 017: undefined symbol "cmd" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(193) : warning 219: local variable "tmp" shadows a variable at a preceding level C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(194) : warning 217: loose indentation C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(194) : error 017: undefined symbol "strtok" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(194) : error 033: array must be indexed (variable "tmp") C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(199) : error 017: undefined symbol "giveplayerid" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(201) : warning 217: loose indentation C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(201) : error 017: undefined symbol "TEAM_ADMIN" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(202) : error 017: undefined symbol "giveplayerid" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(203) : error 017: undefined symbol "giveplayerid" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(203) : error 017: undefined symbol "giveplayer" C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(203) : error 029: invalid expression, assumed zero C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(203) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.
Originally Posted by Luke™
Nevermind. Scripting I guess is just not for me, whenever I try to learn any kind of scripting I fail or just.. simply don't understand it still after I have seen and read the same thing 100 times - Its true, I have been learning french for 3 years now, still don't know shit
|
C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(194) : error 017: undefined symbol "strtok" |
strtok(const string[], &index, seperator=' ')
{
new length = strlen(string);
new offset = index;
new result[128];
while((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
if((index < length) && (string[index] == seperator))
{
index++;
}
return result;
}