[Tutorial] How to create commands with ZCMD & sscanf
#40

Suppose I have a command /pmspy. But now, I want to create /pspy.

So if I do something like this:

Code:
for (new i=0; i<MAX_PLAYERS; i++)
{
    if(playerData[i][playerLevel] >= 4)
    {
        if(playerData[i][pspy])
            {
                 new spyText[200];
		 format(spyText, sizeof(spyText), "{3E7EFF}[Police Radio Spy]: {FFFFFF}%s", message);
		 SendClientMessage(i, COLOR_WHITE, spyText);
	     }
     }
}
I'm going to have to initialize pspy somewhere otherwise pawno says
Code:
undefined symbol: "pspy"
My question is: where do I initialize it?
Reply


Messages In This Thread
How to create commands with ZCMD & sscanf - by Jafet_Macario - 01.09.2011, 11:37
Re: How to create commands with ZCMD & sscanf - by Basicz - 01.09.2011, 11:44
Re: How to create commands with ZCMD & sscanf - by Darnell - 01.09.2011, 11:52
Re: How to create commands with ZCMD & sscanf - by Jafet_Macario - 01.09.2011, 12:43
Re: How to create commands with ZCMD & sscanf - by Davz*|*Criss - 02.09.2011, 11:47
Re: How to create commands with ZCMD & sscanf - by Kush - 02.09.2011, 12:25
Re: How to create commands with ZCMD & sscanf - by FireCat - 02.09.2011, 12:26
Re: How to create commands with ZCMD & sscanf - by Jafet_Macario - 02.09.2011, 12:33
Re: How to create commands with ZCMD & sscanf - by Lorenc_ - 02.09.2011, 12:34
Re: How to create commands with ZCMD & sscanf - by Jafet_Macario - 02.09.2011, 12:44
Re: How to create commands with ZCMD & sscanf - by HyperZ - 02.09.2011, 13:15
Re: How to create commands with ZCMD & sscanf - by Jafet_Macario - 03.09.2011, 19:23
Re: How to create commands with ZCMD & sscanf - by SupremeCommander - 04.09.2011, 09:42
Re: How to create commands with ZCMD & sscanf - by dahley5 - 04.09.2011, 19:43
Re: How to create commands with ZCMD & sscanf - by Jafet_Macario - 05.09.2011, 06:38
Re: How to create commands with ZCMD & sscanf - by Kostas' - 20.10.2011, 12:19
Re: How to create commands with ZCMD & sscanf - by GAMER_PS2 - 24.10.2011, 10:32
Re: How to create commands with ZCMD & sscanf - by Captain_Mani - 07.08.2012, 15:44
Re : How to create commands with ZCMD & sscanf - by Sandiel - 12.08.2012, 02:09
Re: How to create commands with ZCMD & sscanf - by Lordzy - 12.08.2012, 03:37
Re: How to create commands with ZCMD & sscanf - by nogh445 - 18.08.2012, 01:39
Re: How to create commands with ZCMD & sscanf - by Vinninho - 14.09.2012, 06:27
Re: How to create commands with ZCMD & sscanf - by Glint - 14.09.2012, 06:31
Re: How to create commands with ZCMD & sscanf - by xMCx - 15.09.2012, 12:24
Re: How to create commands with ZCMD & sscanf - by Bug. - 01.10.2012, 13:35
Re: How to create commands with ZCMD & sscanf - by [TheEnd] - 02.10.2012, 13:07
Re: How to create commands with ZCMD & sscanf - by SantarioLeone - 03.10.2012, 22:08
Respuesta: How to create commands with ZCMD & sscanf - by Strier - 24.12.2012, 19:40
Re : How to create commands with ZCMD & sscanf - by samp_boy - 12.05.2013, 20:52
Re: How to create commands with ZCMD & sscanf - by Pettersen - 18.05.2013, 17:14
Re: How to create commands with ZCMD & sscanf - by SupaVZ - 31.05.2013, 09:29
Re: How to create commands with ZCMD & sscanf - by qazwsx - 19.07.2013, 09:35
Re: How to create commands with ZCMD & sscanf - by qazwsx - 02.08.2013, 11:41
Re: How to create commands with ZCMD & sscanf - by d0nTtoucH - 17.10.2013, 22:46
Re: How to create commands with ZCMD & sscanf - by iCurse - 12.01.2015, 12:56
Re: How to create commands with ZCMD & sscanf - by UnfairestB - 02.02.2015, 09:09
Re: How to create commands with ZCMD & sscanf - by Arastair - 02.02.2015, 10:04
Re: How to create commands with ZCMD & sscanf - by SuperHelper - 26.08.2017, 16:17
Re: How to create commands with ZCMD & sscanf - by SuperHelper - 26.08.2017, 17:21
Re: How to create commands with ZCMD & sscanf - by Shamal - 04.01.2018, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)