Help Dialog
#1

Why my new filterscript don't show a dialog?
The Dialog script is

PHP код:
        if(FILTERSCRIPT_LOADED == 1){
                if(
Login[playerid] == 0){
                        
format(str,sizeof(str),Text[3],Name(playerid));
                        if(
strfind(TAG,Name(playerid),true) == 0){
                                
ShowPlayerDialog(playerid,DIALOG_CLAN,DIALOG_STYLE_INPUT,Text[4],str,Text[5],Text[6]);
                        }
                }
        } 
EDIT:
Why there are this error

PHP код:
C:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1110) : error 033: array must be indexed (variable "level")
C:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1111) : error 024"break" or "continue" is out of context
C
:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1112) : warning 209: function "SendLevelErrorCMDS" should return a value
C
:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1113) : error 033: array must be indexed (variable "level")
C:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1114) : error 033: array must be indexed (variable "level")
C:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1114) : error 024"break" or "continue" is out of context
C
:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1115) : warning 209: function "SendLevelErrorCMDS" should return a value
C
:\Users\Andrea\Desktop\tfadmin\filterscripts\TFAdmin.pwn(1117) : warning 209: function "IsPlayerAdminLevel" should return a value
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
5 Errors

Script

PHP код:
stock IsPlayerAdminLevel(pid,level[]){
    if(
level == 6){
        if(
IsPlayerAdmin(pid)) continue; else
        if(!
IsPlayerAdmin(pid)) return SendLevelErrorCMDS("rcon",pid);
    } else if(
level 5){
        if(
info[pid][livello] >= level) continue; else
        if(!
IsPlayerAdmin(pid)) return SendLevelErrorCMDS(level,pid);
    }

Reply
#2

It conflict with your gamemode.
Reply
#3

I test on Bare Gamemode
Reply
#4

Place everything in right place + i think you copied it from somewhere??
Reply
#5

No, there is my work for TFAdmin and a new filterscript in Beta Test TFAntiFakeClan.
And "Place everything in right place"?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)