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; }
you dont have function Checkaccount, try to find it in other gamemode where you copied other things.
|
and where did you get that function in gamemode?
may be in a include, try to find it on the internet. |
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)) //function { 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; }
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)) //function { 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; } |
no, this is just a dialog, you forgot
you dont have this function in your gm |
if(Checkaccount(inputtext)) //that is the function that checks the account { 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; }
Checkaccount(text[]) { if(....blabla...) return true; return false; } |