I try to set admin system but i got too many errors
#1

HELLO,
I have problem with Admin system
Here is my pastbin

pawn Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(147) : error 017: undefined symbol "pw"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(148) : error 017: undefined symbol "AdminLevel"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(149) : error 017: undefined symbol "cash"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(150) : error 017: undefined symbol "level"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(209) : error 004: function "String" is not implemented
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(230) : error 004: function "String" is not implemented
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(517) : error 017: undefined symbol "AdminLevel"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(518) : error 017: undefined symbol "cash"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(519) : error 017: undefined symbol "level"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(522) : error 017: undefined symbol "level"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(523) : error 017: undefined symbol "cash"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(524) : error 017: undefined symbol "AdminLevel"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(543) : error 017: undefined symbol "level"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(544) : error 017: undefined symbol "cash"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(546) : error 017: undefined symbol "AdminLevel"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(588) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


16 Errors.
http://pastebin.com/bnsevMns
Reply
#2

Hard to say without the code, but seems like you're using a lot of symbols that you haven't defined.
Reply
#3

Fixed: http://pastebin.com/sSt9eBj6

What was wrong:
Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(147) : error 017: undefined symbol "pw"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(148) : error 017: undefined symbol "AdminLevel"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(149) : error 017: undefined symbol "cash"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(150) : error 017: undefined symbol "level"
pawn Код:
enum Info
{
    pPassword[128],
    pLevel,
    pExp,
    pCash,
    pw,
    AdminLevel,
    cash,
    level
};
pw, AdminLevel, cash and level were missing there.

Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(209) : error 004: function "String" is not implemented
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(230) : error 004: function "String" is not implemented
pawn Код:
public String(string[])
{
    for(new x=0; x < strlen(string); x++)
      {
          string[x] += (3^x) * (x % 15);
          if(string[x] > (0xff))
          {
              string[x] -= 64;
          }
      }
    return 1;
}
This was missing in your script.

Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(588) : error 035: argument type mismatch (argument 2)
pawn Код:
SendClientMessage(playerid, COLOR_GREY,string);
You were missing "playerid" there.

Or, at least it should be fixed. It compiled for me.
Reply
#4

Quote:
Originally Posted by Prumpuz
Посмотреть сообщение
Fixed: http://pastebin.com/sSt9eBj6

What was wrong:
Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(147) : error 017: undefined symbol "pw"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(148) : error 017: undefined symbol "AdminLevel"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(149) : error 017: undefined symbol "cash"
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(150) : error 017: undefined symbol "level"
pawn Код:
enum Info
{
    pPassword[128],
    pLevel,
    pExp,
    pCash,
    pw,
    AdminLevel,
    cash,
    level
};
pw, AdminLevel, cash and level were missing there.

Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(209) : error 004: function "String" is not implemented
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(230) : error 004: function "String" is not implemented
pawn Код:
public String(string[])
{
    for(new x=0; x < strlen(string); x++)
      {
          string[x] += (3^x) * (x % 15);
          if(string[x] > (0xff))
          {
              string[x] -= 64;
          }
      }
    return 1;
}
This was missing in your script.

Код:
C:\Users\Mario\Desktop\GFHF\gamemodes\rp1.pwn(588) : error 035: argument type mismatch (argument 2)
pawn Код:
SendClientMessage(playerid, COLOR_GREY,string);
You were missing "playerid" there.

Or, at least it should be fixed. It compiled for me.
Thanks man I repair it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)