#1

Well im trying to create a /ajail command, but it aint working out for me. I get the following errors

Код:
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.
Script = http://pastebin.com/m1ecfb943
Reply
#2

You should learn some basics first. You're missing some functions, variables and defines.
Reply
#3

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
Reply
#4

Quote:
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
These stuffs aren't really necessary to know.
Reply
#5

Well, i don't see what is so hard here.

Quote:

C:\Users\Luke\Desktop\SA-MP\gamemodes\area51.pwn(194) : error 017: undefined symbol "strtok"

It's normal that you'll get this error if you're using "strtok" function but you didn't added it to your script:

pawn Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)