error 029: invalid expression, assumed zero - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: error 029: invalid expression, assumed zero (
/showthread.php?tid=554409)
error 029: invalid expression, assumed zero -
roncohen - 03.01.2015
Код:
/* ---------------- SCRIPT REVISION ----------------- */
// Do not forget to change this everytime you commit - it's mandatory!
/* Warning fix by Rellex */
#pragma unused NationSel_HandleNationSelection
#pragma unused NationSel_InitNationNameText
#pragma unused NationSel_SetupSelectedNation
#pragma unused NationSel_SwitchToNextNation
#pragma unused NationSel_SwitchToPrevNation
/* End of fix list */
#define SERVER_GM_TEXT "BG:RP v1.5.020"
#include <a_samp>
#include <a_mysql>
#include <streamer>
#include <yom_buttons>
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <YSI\y_timers>
#include <YSI\y_utils>
#if defined SOCKET_ENABLED
#include <socket>
#endif
#include "./includes/defines.pwn"
#include "./includes/enums.pwn"
#include "./includes/variables.pwn"
#include "./includes/timers.pwn"
#include "./includes/functions.pwn"
#include "./includes/commands.pwn"
#include "./includes/mysql.pwn"
#include "./includes/OnPlayerLoad.pwn"
#include "./includes/callbacks.pwn"
#include "./includes/textdraws.pwn"
#include "./includes/streamer.pwn"
#include "./includes/OnDialogResponse.pwn"
main() []
public OnGameModeInit()
{
print("Preparing the gamemode, please wait...");
g_mysql_Init();
return 1;
}
public OnGameModeExit()
{
g_mysql_Exit();
return 1;
}
Re: error 029: invalid expression, assumed zero -
mamorunl - 04.01.2015
Since this is a script error, please post it in 'scripting discussion' next time. You have used the wrong brackets, as main() is a function