SA-MP Forums Archive
[GameMode] Zombieland TDM / Survival (SQLite) - 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: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Zombieland TDM / Survival (SQLite) (/showthread.php?tid=654957)



Zombieland TDM / Survival (SQLite) - Logic_ - 10.06.2018


Current Version: V1 Build 4 | Original Thread: Click me!

Information:
Click me!
All guidance can be found here!

Update Log:
Click me!

To Do List:
1. Cleanup all functions and improve indentation further
2. Textdraws/ useless code cleanup

Converting .INI maps to the new system:
You can use the convert.pwn and use it a filter-script to move your .INI map to the database. You also might need to change the MAX_MAPS definition value.

Reasons to use:
1. SQLite! Faster and better than other file saving systems.
2. Optimized code - Almost everything has been rewritten to suit the new standards.
3. Cleaner code - Code repetition has reduced a lot and is now a lot more cleaner
4. Providing bug fixing support!

Note(s):
1. Use Zeex's/ Community's Compiler

Download Link:
Click me!



Re: Zombieland TDM / Survival (SQLite) - Shadow0707 - 10.06.2018

Sounds amazing


Re: Zombieland TDM / Survival (SQLite) - BanSilog - 10.06.2018

Nice bro!


Re: Zombieland TDM / Survival (SQLite) - xMoBi - 10.06.2018

looks good!


Re: Zombieland TDM / Survival (SQLite) - KyNe - 11.06.2018

wow well,good job


Re: Zombieland TDM / Survival (SQLite) - DarkMythHunter - 11.06.2018

Wow, love it.


Re: Zombieland TDM / Survival (SQLite) - Logic_ - 11.06.2018

Thank you everyone for your comments.

Will release an update with quite lots of changes! Stay tuned.

EDIT: Released V1 Build 2.


Re: Zombieland TDM / Survival (SQLite) - bruxo00 - 11.06.2018

I've looked at the code, it seems well organized, but one thing:

Код:
	if (PRESSED(KEY_WALK))
	{
		if (pInfo[playerid][pTeam] == TEAM_ZOMBIE)
		{
			if (pInfo[playerid][pClass] == MUTATEDZOMBIE)
			{

				
			}
		 }
	}
Why do you have so many if statments built like this? And not like this:

Код:
if (PRESSED(KEY_WALK) && pInfo[playerid][pTeam] == TEAM_ZOMBIE && pInfo[playerid][pClass] == MUTATEDZOMBIE) 
{

}



Re: Zombieland TDM / Survival (SQLite) - Logic_ - 12.06.2018

Quote:
Originally Posted by bruxo00
Посмотреть сообщение
I've looked at the code, it seems well organized, but one thing:

Код:
	if (PRESSED(KEY_WALK))
	{
		if (pInfo[playerid][pTeam] == TEAM_ZOMBIE)
		{
			if (pInfo[playerid][pClass] == MUTATEDZOMBIE)
			{

				
			}
		 }
	}
Why do you have so many if statments built like this? And not like this:

Код:
if (PRESSED(KEY_WALK) && pInfo[playerid][pTeam] == TEAM_ZOMBIE && pInfo[playerid][pClass] == MUTATEDZOMBIE) 
{

}
Indeed - I've yet to touch the OnPlayerKeyStateChange function and others.


Re: Zombieland TDM / Survival (SQLite) - Logic_ - 19.06.2018

New update is out!


Re: Zombieland TDM / Survival (SQLite) - Mobtiesgangsa - 22.06.2018

i can not compile this gamemode reason

Quote:

C:\Users\Home\Desktop\High-class\gamemodes\ZLA_NEW.pwn(835) : error 075: input line too long (after substitutions)
C:\Users\Home\Desktop\High-class\gamemodes\ZLA_NEW.pwn(836) : error 037: invalid string (possibly non-terminated string)
C:\Users\Home\Desktop\High-class\gamemodes\ZLA_NEW.pwn(836) : warning 215: expression has no effect
C:\Users\Home\Desktop\High-class\gamemodes\ZLA_NEW.pwn(836) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Home\Desktop\High-class\gamemodes\ZLA_NEW.pwn(836) : error 017: undefined symbol "INTE"
C:\Users\Home\Desktop\High-class\gamemodes\ZLA_NEW.pwn(836) : fatal error 107: too many error messages on one line

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


5 Errors.




Re: Zombieland TDM / Survival (SQLite) - Logic_ - 22.06.2018

Quote:
Originally Posted by Mobtiesgangsa
Посмотреть сообщение
i can not compile this gamemode reason
Use Zeex's compiler.


Re: Zombieland TDM / Survival (SQLite) - Logic_ - 25.06.2018

V1 Build 4 released!

PHP код:
1. Added new terrorist bomb system
2. Added 
new doctor shield system
3. Patched an issue with terrorist bomb system
4. Added an 
array that stores the map namecan be useful for '/maps' command



Re: Zombieland TDM / Survival (SQLite) - EzeGODezE - 26.06.2018

Where your prison roleplay script


Re: Zombieland TDM / Survival (SQLite) - Mobtiesgangsa - 27.06.2018

i would like to inform you there is a defect while creating users table i had to add it manual

EDIT: users that register is not added correctly to the specified tables
Players name

registered players are not saved to SQLite properly

No login shows for registered players

Maps are all added properly

there is a bug on Script its self i could specifi more only on discort or skype


Re: Zombieland TDM / Survival (SQLite) - Erwin. - 03.07.2018

I see, that you have improved alot in scripting. And regarding to this gamemode, I remember, that you recommend to move the system to MySQL, but at that time, I haven't have that much experience in MySQL though. That's why I left it as Y_Ini, because I knew, that one day, you will make it better. Thank you for converting this gamemode and adding updates to it. Much respect and keep going.


Re: Zombieland TDM / Survival (SQLite) - MafiaOink - 22.02.2019

Nice, looks very clean!