Jump to content
  • 0

error 017: undefined symbol "playerid"


Browse

Question

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 Browse
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.