SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 06/11/2016, 01:43 AM   #21
PrinceKumar
Huge Clucker
 
Join Date: Apr 2013
Posts: 438
Reputation: 6
Default Re: Zombie Survival - Basic [MySQL]

can you make it full package? script please sir Jelly
PrinceKumar is offline   Reply With Quote
Old 17/11/2016, 03:01 PM   #22
Jelly23
Guest
 
Posts: n/a
Default Re: Zombie Survival - Basic [MySQL]

I have done few bug fixes and improvements.

Download:
Pastebin
Solidfiles

Just updated the links aswell.
  Reply With Quote
Old 11/05/2017, 12:20 PM   #23
Stones
Huge Clucker
 
Stones's Avatar
 
Join Date: Jun 2013
Location: United Kingdom
Posts: 248
Reputation: 56
Default Re: Zombie Survival - Basic [MySQL]

Nothing special just thought i'd drop these four commands in here that i made for this.

Code:
CMD:skip(playerid, params[])
{
    if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
    Duration = 5;
    format(global, sizeof (global),"{EE0020}[SERVER] Admin %s has skipped this map", GetName(playerid));
    SendClientMessageToAll(-1, global);
    return 1;
}
CMD:more(playerid, params[])
{
    if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
    Duration = 200;
    format(global, sizeof (global),"{EE0020}[SERVER] Admin %s has extended thismap", GetName(playerid));
    SendClientMessageToAll(-1, global);
    return 1;
}
CMD:makehuman(playerid, params[])
{
	if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
	new id, target[50];
	if(sscanf(params,"s[50]", target)) return SendClientMessage(playerid,-1,"USAGE: /makehuman id]");
	if (id == INVALID_PLAYER_ID) return ERROR(playerid,"Player isn't online.");
	SetPlayerHuman(playerid);
    format(global, sizeof (global), "{EE0020}[SERVER] Admin %s has set %s to Human", GetName(playerid), GetName(id));
    SendClientMessageToAll(0xAA3333AA, global);
    UpdateTeams();
    return 1;
}

CMD:makezombie(playerid, params[])
{
	if(PlayerInfo[playerid][Level] < 3) return ERROR(playerid,"You must be an administrator to use this command.");
	new id, target[50];
	if(sscanf(params,"s[50]", target)) return SendClientMessage(playerid,-1,"USAGE: /makezombie id");
	if (id == INVALID_PLAYER_ID) return ERROR(playerid,"Player isn't online.");
	SetPlayerZombie(playerid);
    format(global, sizeof global, "{EE0020}[SERVER] Admin %s has set %s to Zombie", GetName(playerid), GetName(id));
    SendClientMessageToAll(0xAA3333AA, global);
    UpdateTeams();
    return 1;
}
__________________
Stones is offline   Reply With Quote
Old 12/05/2017, 08:04 PM   #24
hossa
Gangsta
 
hossa's Avatar
 
Join Date: Dec 2011
Location: Around here.
Posts: 513
Reputation: 181
Default Re: Zombie Survival - Basic [MySQL]

@Jelly23
You should make a github for this, I think some people might be interested into developing this for future references.
hossa is offline   Reply With Quote
Old 15/05/2017, 10:59 AM   #25
coool
Gangsta
 
coool's Avatar
 
Join Date: Feb 2013
Location: Republic of Pakistan
Posts: 591
Reputation: 34
Default Re: Zombie Survival - Basic [MySQL]

Good.
__________________
coool is offline   Reply With Quote
Old 26/10/2017, 12:25 AM   #26
Copper66
Little Clucker
 
Join Date: Oct 2017
Posts: 1
Reputation: 0
Unhappy Re: Zombie Survival - Basic [MySQL]

Can you help me with this mysql error?



[22:13:55] [ERROR] mysql_format - invalid connection handle (id: 0)
[22:13:55] [ERROR] mysql_tquery - invalid connection handle (id: 0)
[22:13:55] [DEBUG] mysql_connect - host: "localhost", user: "root", database: "zombie", password: "****", port: 3306, autoreconnect: true, pool_size: 2
[22:13:55] [DEBUG] CMySQLHandle::Create - creating new connection..
[22:13:55] [DEBUG] CMySQLHandle::CMySQLHandle - constructor called
[22:13:55] [DEBUG] CMySQLHandle::Create - connection created (id: 1)
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'
[22:13:55] [DEBUG] mysql_errno - connection: 1
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'
[22:13:55] [ERROR] CMySQLConnection::Connect - (error #1049) Unknown database 'zombie'


I am trying to run gamemode on windows with wampserver but this mysql error is making things difficult help me please!and where do I put the tables of maps, bans and players?

Last edited by Copper66; 26/10/2017 at 12:34 AM. Reason: lack of information
Copper66 is offline   Reply With Quote
Old 26/10/2017, 01:37 AM   #27
GrayInot
Little Clucker
 
Join Date: Oct 2017
Posts: 1
Reputation: 0
Default Re: Zombie Survival - Basic [MySQL]

The includes/plugins section in the script is the reason i can't pawno the script it keeps error any help? im just a roockie.
GrayInot is offline   Reply With Quote
Old 27/10/2017, 08:50 PM   #28
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 799
Reputation: 78
Default Re: Zombie Survival - Basic [MySQL]

Good job.
__________________
Left SA:MP, and not avalaible anymore!!
Thanks samp for awesome moments, i enjoy!! Goodbye!
ModernFreeroam: www.mf-samp.com , IP:94.23.255.30:7777
CounterTerroristUnit: www.ctu.w4f.eu , IP:87.98.243.201:6969
xSF: www.xsfserver.com , IP: 87.98.243.201:6969
Exm: www.exmserv.me , IP: exmserv.me:7777
Underground Stunting: www.ustunting.com , IP:145.239.3.225:7777

Thanks everyone,for the awesome moments,
Regards, COD Ghosts owner.
Younes44 ,YOuNeS_Dz ,WarZ ,Bryan_ , Kaneki
Younes44 is offline   Reply With Quote
Old 08/01/2018, 01:47 PM   #29
oppo1234
Big Clucker
 
Join Date: Jan 2015
Location: China
Posts: 83
Reputation: 22
Default Re: Zombie Survival - Basic [MySQL]

how to use sql file
__________________
who can teach me pawno,Please add my ********,my ****** mailshole78@gmail.com
oppo1234 is offline   Reply With Quote
Old 22/04/2018, 02:08 PM   #30
BrunRoxy
Little Clucker
 
Join Date: Sep 2016
Posts: 4
Reputation: 0
Default Re: Zombie Survival - Basic [MySQL]

Someone help I get this error when I compile it,

F:\Gta San Andreas\Samp Server Files\Server\pawno\include\sscanf2.inc(154) : error 017: undefined symbol "IsPlayerNPC"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\sscanf2.inc(19 : error 017: undefined symbol "IsPlayerNPC"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\sscanf2.inc(232) : error 017: undefined symbol "IsPlayerNPC"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(22) : error 017: undefined symbol "CreatePlayerTextDraw"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(22) : warning 213: tag mismatch
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(23) : error 017: undefined symbol "PlayerTextDrawLetterSize"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(24) : error 017: undefined symbol "PlayerTextDrawAlignment"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(25) : error 017: undefined symbol "PlayerTextDrawColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(26) : error 017: undefined symbol "PlayerTextDrawSetShadow"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(27) : error 017: undefined symbol "PlayerTextDrawSetOutline"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(2 : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(29) : error 017: undefined symbol "PlayerTextDrawFont"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(30) : error 017: undefined symbol "PlayerTextDrawSetProportional"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(31) : error 017: undefined symbol "PlayerTextDrawSetShadow"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(33) : error 017: undefined symbol "CreatePlayerTextDraw"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(33) : warning 213: tag mismatch
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(34) : error 017: undefined symbol "PlayerTextDrawLetterSize"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(35) : error 017: undefined symbol "PlayerTextDrawTextSize"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(36) : error 017: undefined symbol "PlayerTextDrawAlignment"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(37) : error 017: undefined symbol "PlayerTextDrawColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(3 : error 017: undefined symbol "PlayerTextDrawUseBox"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(39) : error 017: undefined symbol "PlayerTextDrawBoxColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(40) : error 017: undefined symbol "PlayerTextDrawSetShadow"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(41) : error 017: undefined symbol "PlayerTextDrawSetOutline"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(42) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(43) : error 017: undefined symbol "PlayerTextDrawFont"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(44) : error 017: undefined symbol "PlayerTextDrawSetProportional"
F:\Gta San Andreas\Samp Server Files\Server\pawno\include\TextMenu.inc(45) : error 017: undefined symbol "PlayerTextDrawSetShadow"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


Please help.
BrunRoxy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic survival xD FireCat Everything and Nothing 32 17/03/2012 11:40 PM


All times are GMT. The time now is 10:20 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.