commands problem
#1

since I turned gm from strcmp to zcmd some commands do not work, I have these warnings:
Код:
C:\Users\----\Desktop\NEW GM ZCMD\NEW GM\pawno\include\Dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(79) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(100) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(123) : warning 219: local variable "string" shadows a variable at a preceding level
../include/gl_common.inc(138) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\----\Desktop\NEW GM ZCMD\NEW GM\pawno\include\mSelection.inc(698) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\----\Desktop\NEW GM ZCMD\NEW GM\gamemodes\NEW.pwn(10537) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\----\Desktop\NEW GM ZCMD\NEW GM\gamemodes\NEW.pwn(10630) : warning 203: symbol is never used: "cmd"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Warnings.
I do not know if they are related to the problem, this is a command that does not work:
Код:
Код:
CMD:Alien(playerid, params[])
{
    for ( new i = 0; i < 5; i ++ )
		if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
		RemovePlayerAttachedObject( playerid, i );
		SendClientMessage(playerid,COLOR_YELLOW,"for remove /remove");
    SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.017478, 0.051500, 0.003912, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 ); // MotorcycleHelmet1 - HEAD
	SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 ); // fire_car - fire2
	SetPlayerAttachedObject( playerid, 2, 18716, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 ); // prt_smoke_expand - smoke3
		GetPlayerName(playerid, pname, sizeof(pname));
format(stringu, sizeof(stringu), "{54da00}[COMMAND]{ffffff}%s (ID: %d) used cmd {ff0000}/Alien", pname, playerid);
   		SendClientMessageToAll(COLOR_BLUE, stringu);
    return 1;
}
Reply
#2

Guys is not it strange? cmd some work and others do not why?

this is a cmd that works:
Код:
CMD:tube1(playerid, params[])
{
SetPlayerPos(playerid,831.58,268.69,708.39);
		GetPlayerName(playerid, pname, sizeof(pname));
format(stringu, sizeof(stringu), "{54da00}[TELEPORT]{ffffff}%s (ID: %d) teleported {ff0000}/Tube1", pname, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, stringu);
return 1;
}
this is a cmd that does not work:
Код:
    CMD:Pkm(playerid, params[])
	{

SetPlayerPos(playerid, 2549.8960,-3008.9790,2.1790);
GetPlayerName(playerid, pname, sizeof(pname));
format(stringu, sizeof(stringu), "{54da00}[TELEPORT]{ffffff}%s (ID: %d) teleported {ff0000}/Pkm", pname, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, stringu);
	return 1;

    }
Guys what can it be that some cmd and others not?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)