Help Dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Dialog (
/showthread.php?tid=389508)
Help -
[CwS]TonyFortebracci - 02.11.2012
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 (c) 1997-2006, ITB 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);
}
}
Re: Help Dialog -
JaKe Elite - 02.11.2012
It conflict with your gamemode.
Re: Help Dialog -
[CwS]TonyFortebracci - 02.11.2012
I test on Bare Gamemode
Re: Help Dialog -
Nirzor - 02.11.2012
Place everything in right place + i think you copied it from somewhere??
Re: Help Dialog -
[CwS]TonyFortebracci - 02.11.2012
No, there is my work for TFAdmin and a new filterscript in Beta Test TFAntiFakeClan.
And "Place everything in right place"?