How to Convert strcmp to zcmd
#1

How to Convert strcmp to ZMD I Getting Error..
example Want to Conert '
Код:
if(strcmp(cmd, "/skydive", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(PlayerInfo[playerid][pAdmin] >= 2)
			{
				GetPlayerPos(playerid, rx, ry, rz);
				if(IsPlayerConnected(playerid))
				{
					GivePlayerGun(playerid, 46);
					SetPlayerPos(playerid,rx, ry, rz+1500);
					SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
			}
		}
		return 1;
Kan You Help me?
Reply
#2

Код:
if(strcmp(cmd, "/skydive", true) == 0)
To:

Код:
CMD: skydive(playerid, params[])
Reply
#3

I got this Error If I Not Convert to Zcmd
[IMG][/IMG]
But If I Convert to
CMD: skydive(playerid, params[])
I got this
Reply
#4

Do you define somewhere those position coordinates Floats?
Reply
#5

Can you Give me Tutorial Define
Because Iam Newbie In Scripting
Reply
#6

when I say define I mean this:
pawn Код:
new Float:rx, Float:ry, Float:rz;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)