MySQL problem
#1

Hi when I try to compile my script this is what I get:fatal error 100: cannot read from file: "mysql"
Can anyone help me out?
Reply
#2

BlueG's MySQL? If yes, then it is:
pawn Код:
#include <a_mysql>
Reply
#3

Now im getting these errors error 001: expected token: "-string end-", but found "-identifier-"
error 010: invalid function or declaration

Line 10
Код:
#include <zcmd>
Reply
#4

Show us the first 15 lines. And also the line + 1 below/above for the error 001.
Reply
#5

Код:
/*
	Created by Kitten
	Date created 9/28/12
	Time created 5:50 PM Mountain Time Zone
*/

// Evac 0 = Can't fit the evac type || Evac 1 = Vehicle or Land Area || Evac 2 = Helicopter Vehicle on Land nor Air Area

#include <a_samp>
#include <zcmd>
#include <a_mysql>
#include <sscanf2>
#include <foreach>
#include <YSI\y_ini>
Reply
#6

Nothing is wrong with these lines.
Reply
#7

Yeah but I keep on getting those 2 errors
Reply
#8

can anyone help me resolving my problem?
what does it mean by invalid funtion or decleration?
Reply
#9

Show me the top of your script (100 lines) and the error line.
Reply
#10

Код:
/*
	Created by Kitten
	Date created 9/28/12
	Time created 5:50 PM Mountain Time Zone
*/

// Evac 0 = Can't fit the evac type || Evac 1 = Vehicle or Land Area || Evac 2 = Helicopter Vehicle on Land nor Air Area

#include <a_samp>
#include <zcmd>
#include <a_mysql>
#include <sscanf2>
#include <foreach>
#include <YSI\y_ini>

// Defines
#define function%0(%1) forward%0(%1);public%0(%1)
#define NON_IMMUNE 144,119,5,281,276,230,274,161,27,25,275,8,29,260,149,123,44,188,261,16,279,294,287
#define MAX_MAPTIME 250
#define MAX_RESTART_TIME 10000
#define MAX_MAPUPDATE_TIME 5000
#define MAX_SHOW_CP_TIME 1000
#define MAX_END_TIME 60000
#define MAX_BALANCERUPDATE_TIME 6000
#define MAX_MAP_FILES 17

#define SQL_HOST " "
#define SQL_USER  " "
#define SQL_PASS " "
#define SQL_DB  " "

#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

#define NAME "...|| ZOMBIE APOCALYPSE ||..."
#define SCRIPT "b2.3"
#define SITE "neg-gaming.pro-forum.co.uk"
#define chat "{FFFFFF}»"
#define PLAYER_MUTE_TIME_MINUTES (2)

#define DIALOG_REGISTER 0
#define DIALOG_LOGIN 1
#define DIALOG_RADIO 2
#define DIALOG_KICK 3
#define DIALOG_TOP 4
#define DIALOG_WARN 5
#define DIALOG_BANNED 6
#define DIALOG_CMDS 7
#define DIALOG_HELP 8
#define DIALOG_HOWTOXP 9
#define DIALOG_ACMDS 10
#define DIALOG_RULES 11
#define DIALOG_CLASS 12
#define DIALOG_CLASS_2 13
#define DIALOG_CLASS_3 14
#define DIALOG_ADMINS 15
#define DIALOG_VIPS 16
#define DIALOG_REPORT 17
#define DIALOG_REPORT_2 18
#define DIALOG_SHOUT 19
#define DIALOG_VIPINFO 20
#define DIALOG_VIP 21
#define DIALOG_VIP_CLASS 22
#define DIALOG_COINS 23

#define TEAM_ZOMBIE 0
#define TEAM_HUMAN 1

#define COLOR_PINK 0xFFC0CB77
#define COLOR_HUMAN 0x33CCFF44
#define COLOR_ZOMBIE 0x9ACD3244
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA

// Human Classes
#define CIVILIAN 1501 // Silenced Pistol, Shotgun - 0 XP
#define POLICEMAN 1502 // Deagle,Shotgun - 500 XP
#define MEDIC 1503 // Shotgun,Silenced Pistol,Armour,Cure Infected - 1000 XP
#define SCOUT 1504 // Sniper,Silenced Pistol - 1500 XP
#define HEAVYMEDIC 1505 // Deagle,Shotgun,Armour,Cure Infected - 5000 XP
#define FARMER 1506 // Deagle,AK,County Rifle,Armour - 6000 XP
#define ENGINEER 1507 // Silenced Pistol,Shotgun,Armour,Build Boxes - 7500 XP
#define SWAT 1508 // MP5,Deagle,Armour,Immunity - 10,000 XP
#define HEAVYSHOTGUN 1509 // Shotgun, Deagle,Armour,More shotgun damage - 20,000 XP
#define ADVANCEDMEDIC 1510 // M4,Deagle,Shotgun,Cure all - 25,000 XP
#define ADVANCEDENGINEER 1511 // Deagle,M4,Armour,Build Boxes - 30,000 XP
#define FEDERALAGENT 1512 // M4,Deagle,Shotgun,Armour,Immunity - 35,000 XP
#define KICKBACK 1513 // Silenced Pistol,Shotgun,MP5 - 45000 XP
#define ADVANCEDSCOUT 1514 // Sniper,Deagle,High jump,Half Armour - 100,000 XP
#define ASSASSIN 1515 // M4,Shotgun - Plant C4's - 120,000 XP - REMOVED
#define VIPENGINEER 1516
#define VIPMEDIC 1517
#define VIPSCOUT 1518
#define E_ENGINEER 1519 // Deagle,Shotgun,Armour - Build Ladders - 35,000 XP
#define SOLIDER 1520 // Solider - AK47,Deagle - 6500 XP
#define DOCTOR 1521 // Silenced Pistol - Heal,Cure,Shield Heal - Rank 22

// Zombie Classes
#define STANDARDZOMBIE 2501 // LALT Infect a Player - 0 XP
#define MUTATEDZOMBIE 2502 // LALT Infect Drunk Vision - 500 XP
#define FASTZOMBIE 2503 // High Jump - 5000 XP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)