SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/06/2018, 12:48 AM   #11
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: Oblivion (#RIPX)
Posts: 1,469
Reputation: 263
Default Re: Zombieland TDM / Survival (SQLite)

Quote:
Originally Posted by bruxo00 View Post
I've looked at the code, it seems well organized, but one thing:

Code:
	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:

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

}
Indeed - I've yet to touch the OnPlayerKeyStateChange function and others.
__________________
RIP XXXTentacion [1998-2018]
RIP Fredo [1990-2018]

My Releases: Click me!

Past experiences:
Ex- Developer of COD: Black Ops 3 [2017 - 2018], Palomino Creek RP [2018], NEG [2017], Zombieland [2015] and Evolution Prison RP [2017]
Logic_ is online now   Reply With Quote
Old 19/06/2018, 05:28 AM   #12
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: Oblivion (#RIPX)
Posts: 1,469
Reputation: 263
Default Re: Zombieland TDM / Survival (SQLite)

New update is out!
__________________
RIP XXXTentacion [1998-2018]
RIP Fredo [1990-2018]

My Releases: Click me!

Past experiences:
Ex- Developer of COD: Black Ops 3 [2017 - 2018], Palomino Creek RP [2018], NEG [2017], Zombieland [2015] and Evolution Prison RP [2017]
Logic_ is online now   Reply With Quote
Old 22/06/2018, 05:22 AM   #13
Mobtiesgangsa
Big Clucker
 
Mobtiesgangsa's Avatar
 
Join Date: Oct 2016
Location: Skopje, Macedonia
Posts: 87
Reputation: 9
Default Re: Zombieland TDM / Survival (SQLite)

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 (c) 1997-2006, ITB CompuPhase


5 Errors.
__________________
YSI User

Code:
public e_COMMAND_ERRORS:OnPlayerCommandReceived(playerid, cmdtext[], e_COMMAND_ERRORS:success)
{
	switch(success)
	{
	    case COMMAND_UNDEFINED:
	    {
		    TextDrawShowForPlayer(playerid, cmdinfo[playerid]);
		    SetTimerEx("UnknownCommand", 3000, false, "d", playerid);
	    }
	}
	return COMMAND_OK;
}
Mobtiesgangsa is offline   Reply With Quote
Old 22/06/2018, 06:13 PM   #14
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: Oblivion (#RIPX)
Posts: 1,469
Reputation: 263
Default Re: Zombieland TDM / Survival (SQLite)

Quote:
Originally Posted by Mobtiesgangsa View Post
i can not compile this gamemode reason
Use Zeex's compiler.
__________________
RIP XXXTentacion [1998-2018]
RIP Fredo [1990-2018]

My Releases: Click me!

Past experiences:
Ex- Developer of COD: Black Ops 3 [2017 - 2018], Palomino Creek RP [2018], NEG [2017], Zombieland [2015] and Evolution Prison RP [2017]
Logic_ is online now   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
[GameMode] Zombieland TDM / Survival SjuteL Gamemode Scripts 45 31/05/2017 11:25 AM
[GameMode] The Nether Survival [SQLite] [ZOM] Voxel Gamemode Scripts 83 09/07/2014 09:57 AM


All times are GMT. The time now is 05:50 PM.


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