10.09.2009, 20:02
Hello, i have an error when i trying to compile a gamemode script.....
THE ERRORS :
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2534) : error 017: undefined symbol "irccmd_say"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2535) : error 017: undefined symbol "irccmd_ban"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2536) : error 017: undefined symbol "irccmd_gmx"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2540) : error 017: undefined symbol "irccmd_mute"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2541) : error 017: undefined symbol "irccmd_join"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2542) : error 017: undefined symbol "irccmd_kick"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2547) : error 017: undefined symbol "irccmd_unban"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2551) : error 017: undefined symbol "irccmd_unmute"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2555) : error 017: undefined symbol "irccmd_unbanip"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
THE ERRORS :
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2534) : error 017: undefined symbol "irccmd_say"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2535) : error 017: undefined symbol "irccmd_ban"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2536) : error 017: undefined symbol "irccmd_gmx"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2540) : error 017: undefined symbol "irccmd_mute"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2541) : error 017: undefined symbol "irccmd_join"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2542) : error 017: undefined symbol "irccmd_kick"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2547) : error 017: undefined symbol "irccmd_unban"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2551) : error 017: undefined symbol "irccmd_unmute"
D:\PROGRA~1\SERVER~1\GAMEMO~1\LV.pwn(2555) : error 017: undefined symbol "irccmd_unbanip"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
Код:
public ircOnUserSay(conn, channel[], user[], message[]) { if (channel[0] != '#') return 0; if (message[0] != '!') return 1; // we only want messages starting with ~ new space = (strfind(message, " ")); // find the location of the space new cmdlen; // holds the length of the command if (space>=1) // do we have a space? { new lenmsg = strlen(message); // get the length of the entire message cmdlen = ((lenmsg-(lenmsg-space))-1); // generate length of command } else { cmdlen = (strlen(message)-1); // generate the length of command } if (cmdlen == 3) // is our command 3 characters long? { irccmd(say, 3, conn, channel, user, message); irccmd(ban, 3, conn, channel, user, message); irccmd(gmx, 3, conn, channel, user, message); } else if (cmdlen == 4) //is our command 4 characters long? { irccmd(mute, 4, conn, channel, user, message); irccmd(join, 4, conn, channel, user, message); irccmd(kick, 4, conn, channel, user, message); //irccmd(warn,4,conn,channel,user,message); } else if (cmdlen == 5) // commands 5 chars { irccmd(unban,5,conn,channel,user,message); } else if (cmdlen == 6) // commands 6 chars { irccmd(unmute,6,conn,channel,user,message); } else if (cmdlen == 7) { irccmd(unbanip,7,conn,channel,user,message); } return 1;