29.07.2018, 17:09
Hi, I was doing a certification system for administrators but I have these errors.
Errors:
Lines:
Errors:
Код:
C:\Aventure Roleplay\gamemodes\AVENTURE.pwn(961) : error 017: undefined symbol "Checkaccount" C:\Aventure Roleplay\gamemodes\AVENTURE.pwn(1599) : error 017: undefined symbol "Checkaccount"
Код:
new NameA[MAX_PLAYER_NAME]; GetPlayerName(playerid, NameA, sizeof(NameA)); if(!Checkaccount(NameA)) // Error 961 { SendClientMessage(playerid, -1, "You are not a certified administrator."); SetTimerEx("Kickear", 500, false, "i", playerid); } if(dialogid == D_Certified) { if(response) { if(!strlen(inputtext)) { SendClientMessage(playerid, -1, "You have not entered the name of the account."); return ShowPlayerDialog(playerid, D_Certified, DIALOG_STYLE_INPUT, "Test", "Test:", ">", "x"); } if(Checkaccount(inputtext)) //Line 1599 { new Message[29 + MAX_PLAYER_NAME]; format(Message, sizeof(Message), "Account %s It was certified.", inputtext); SendClientMessage(playerid, -1, Message); } else { new Message[29 + MAX_PLAYER_NAME]; format(Message, sizeof(Message), "Account %s Not certified.", inputtext); SendClientMessage(playerid, -1, Message; } } return 1; }