Cost1n Posted April 23, 2021 Posted April 23, 2021 (edited) function:OnQueryFinish(resultid, extraid, ConnectionHandle) { StopAudioStreamForPlayer(extraid); new szRows, szFields, string[32]; if(resultid != THREAD_NO_RESULT) cache_get_data(szRows, szFields); switch(resultid){ case THREAD_CHECK_ACCOUNT: { InterpolateCameraPos(extraid, 1689.3907, -1732.2874, 20.3228, 1062.3051, -1732.3589, 24.6772, 10000, CAMERA_MOVE); InterpolateCameraLookAt(extraid, 1062.3051, -1732.3589, 24.6772, 1062.3051, -1732.3589, 24.6772, 10000, CAMERA_MOVE); if(szRows) { cache_get_field_content(0, "id", szLoad); playerVariables[extraid][pSQLID] = strval(szLoad); cache_get_field_content(0, "password", szCache); format(playerVariables[extraid][ppassword], 129, szCache); //cache_get_field_content(0, "email", szLoad); format(playerVariables[extraid][pemail], 40, szLoad); cache_get_field_content(0, "sex", szLoad); playerVariables[extraid][psex] = strval(szLoad); cache_get_field_content(0, "age", szLoad); playerVariables[extraid][page] = strval(szLoad); clearChat(extraid, 1); SendClientMessage(extraid, -1, "SERVER: {FFFFFF}Welcome."); SendClientMessage(extraid, -1, "SERVER: {FFFFFF}You already have a registered account, please enter your password into the dialog box."); ShowPlayerDialog(extraid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "SERVER: Login", "Welcome!\n\nPlease enter your password below!", "Login", "Cancel"); } else { format(szMessage, -1, "Hello %s. Welcome!", szPlayerName); SendClientMessage(playerid, 0x844185FF, szMessage); //linia 303 SendClientMessage(playerid, -1, "You aren't registered yet. Please enter your desired password in the dialog box to register."); //linia 304 format(string,sizeof(string),"{844185}Hello %s./n/{FFFFFF}Please enter your desired password below!", GetName(playerid)); //linia 305 ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"SERVER: Registration", string, "Register", "Cancel"); // linia 306 } } } return 1; } C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(303) : error 017: undefined symbol "playerid" C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(304) : error 017: undefined symbol "playerid" C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(305) : error 017: undefined symbol "playerid" C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(306) : error 017: undefined symbol "playerid" Am incercat sa inlocuiesc playerid cu i, imi da aceasi eroare numai ca da undefined symbol "i" Edited April 23, 2021 by Browse
0 Banditul Posted April 23, 2021 Posted April 23, 2021 Considerand faptul ca pana la acel else pentru toate functiile care aveau nevoie de playerid(si care sunt pentru player) ai folosit extraid, pot sa intreb de ce la acele lini ai decis sa pui playerid? Inlocuieste playerid cu extraid
Question
Cost1n
function:OnQueryFinish(resultid, extraid, ConnectionHandle) { StopAudioStreamForPlayer(extraid); new szRows, szFields, string[32]; if(resultid != THREAD_NO_RESULT) cache_get_data(szRows, szFields); switch(resultid){ case THREAD_CHECK_ACCOUNT: { InterpolateCameraPos(extraid, 1689.3907, -1732.2874, 20.3228, 1062.3051, -1732.3589, 24.6772, 10000, CAMERA_MOVE); InterpolateCameraLookAt(extraid, 1062.3051, -1732.3589, 24.6772, 1062.3051, -1732.3589, 24.6772, 10000, CAMERA_MOVE); if(szRows) { cache_get_field_content(0, "id", szLoad); playerVariables[extraid][pSQLID] = strval(szLoad); cache_get_field_content(0, "password", szCache); format(playerVariables[extraid][ppassword], 129, szCache); //cache_get_field_content(0, "email", szLoad); format(playerVariables[extraid][pemail], 40, szLoad); cache_get_field_content(0, "sex", szLoad); playerVariables[extraid][psex] = strval(szLoad); cache_get_field_content(0, "age", szLoad); playerVariables[extraid][page] = strval(szLoad); clearChat(extraid, 1); SendClientMessage(extraid, -1, "SERVER: {FFFFFF}Welcome."); SendClientMessage(extraid, -1, "SERVER: {FFFFFF}You already have a registered account, please enter your password into the dialog box."); ShowPlayerDialog(extraid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "SERVER: Login", "Welcome!\n\nPlease enter your password below!", "Login", "Cancel"); } else { format(szMessage, -1, "Hello %s. Welcome!", szPlayerName); SendClientMessage(playerid, 0x844185FF, szMessage); //linia 303 SendClientMessage(playerid, -1, "You aren't registered yet. Please enter your desired password in the dialog box to register."); //linia 304 format(string,sizeof(string),"{844185}Hello %s./n/{FFFFFF}Please enter your desired password below!", GetName(playerid)); //linia 305 ShowPlayerDialog(playerid, DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"SERVER: Registration", string, "Register", "Cancel"); // linia 306 } } } return 1; }C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(303) : error 017: undefined symbol "playerid"
C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(304) : error 017: undefined symbol "playerid"
C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(305) : error 017: undefined symbol "playerid"
C:\Users\Costin\Desktop\0.3\gamemodes\gm.pwn(306) : error 017: undefined symbol "playerid"
Am incercat sa inlocuiesc playerid cu i, imi da aceasi eroare numai ca da undefined symbol "i"
Edited by Browse1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now