Undefined symbol's[Mysql script] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Undefined symbol's[Mysql script] (
/showthread.php?tid=576878)
Undefined symbol's[Mysql script] -
alexanderjb918 - 07.06.2015
Код:
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));
}
}
Re: Undefined symbol's[Mysql script] -
Konstantinos - 07.06.2015
It's a variable (array) and not a function.
Also "playerid" is supposed to be "extraid".
Re: Undefined symbol's[Mysql script] -
alexanderjb918 - 07.06.2015
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