[FilterScript] Dynamic ATM Rob System (ATM Add, Delete) [Y_INI]
#3

Code:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Come on dude use zcmd for commands.

Code:
forward ATM_TimeUpdater(); public ATM_TimeUpdater()
{
	new
		uString[156];
	for (new i = false; i <= MAX_ATM; i++){
	if(ATMInfo[i][aTime] > 0){
	ATMInfo[i][aTime]--;
	if(ATMInfo[i][aTime] <= 1){
	format(uString,156,"{ffffff}%s(%i)\n{ffffff}State: {77c97d}Active", ATMInfo[i][aName], atm_class);
	Update3DTextLabelText(ATMInfo[i][aLabel], -1, uString);
	ATMInfo[i][aDurum] = true;
	ATMInfo[i][aTime] = 0;
	}
	}
	}
	return true;
}
Not checking if an ATM is actually created.

Code:
SetPVarInt(playerid, "ATMcalinanMiktar", (random(MAX_ATM_PARA))+MIN_ATM_PARA);
You are using regular variables but mix in pvars for no reason use regular variables.

Code:
stock CreateATM(atmname[], Float:aaaX, Float:aaaY, Float:aaaZ, Float:aaaA){
atm_class++;
Code:
stock DestroyATM()
atm_class = 1;
Do I even need to explain the conniptions this will cause in your system.
Reply


Messages In This Thread
Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by Hwang - 26.03.2016, 23:16
Re: Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by ThugLife2424 - 26.03.2016, 23:29
Re: Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by Pottus - 27.03.2016, 02:09
Re: Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by Hwang - 27.03.2016, 11:13
Re: Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by rootcause - 27.03.2016, 11:14
Re: Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by TrentyK - 27.03.2016, 11:34
Re: Dynamic ATM Rob System (ATM Add, Delete) [Y_INI] - by Zorono - 09.04.2016, 09:48

Forum Jump:


Users browsing this thread: 1 Guest(s)