02.11.2012, 11:57
Why my new filterscript don't show a dialog?
The Dialog script is
EDIT:
Why there are this error
Script
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]);
}
}
}
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 (c) 1997-2006, ITB CompuPhase
5 Errors.
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);
}
}