Undefined symbol's[Mysql script]
#1

Код:
C:\Users\ii\Desktop\South Central RP\gamemodes\roleplay.pwn(13654) : error 012: invalid function call, not a valid address
C:\Users\ii\Desktop\South Central RP\gamemodes\roleplay.pwn(13654) : error 017: undefined symbol "playerid"
C:\Users\ii\Desktop\South Central RP\gamemodes\roleplay.pwn(13654) : error 029: invalid expression, assumed zero
C:\Users\ii\Desktop\South Central RP\gamemodes\roleplay.pwn(13654) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.






Код:
case THREAD_CREATE_CHAR:
	    {
	        PlayerData[extraid][pID] = cache_insert_id(g_iHandle);
	        PlayerData[extraid][pLogged] = 1;

			SQL_SaveCharacter(extraid);

			PlayerData[extraid][pID] = -1;
			PlayerData[extraid][pLogged] = 0;
	    }
		case THREAD_CHECK_ACCOUNT:
		{
		    cache_get_data(rows, fields, g_iHandle);

		    if (rows)
			{
			    static
			        loginDate[36];

			    cache_get_row(0, 0, loginDate, g_iHandle);

				format(PlayerData[extraid][pLoginDate], 36, loginDate);
       			FadeTime(playerid)=255;
    			FadeScreen(playerid, 1);
		        Dialog_Show(extraid, LoginScreen, DIALOG_STYLE_PASSWORD, "Account Login", "Welcome back to City Life Roleplay!\n\nYour account was last seen on: %s.\n\nPlease enter your password below to login to your account:", "Login", "Cancel", PlayerData[extraid][pLoginDate]);
			}
			else
			{
			    Dialog_Show(extraid, RegisterScreen, DIALOG_STYLE_PASSWORD, "Account Registration", "Welcome to City Life Roleplay, %s.\n\nNotice: Your account is not registered yet. Please enter your desired password:", "Register", "Cancel", ReturnName(extraid));
			}
    	}
Reply
#2

It's a variable (array) and not a function.
pawn Код:
FadeTime[extraid]=255;
Also "playerid" is supposed to be "extraid".
Reply
#3

Yes I am aware of that I put it in the name just because it is a mysql script i resolved the situations now im retarded sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)