17.03.2013, 21:07
since I turned gm from strcmp to zcmd some commands do not work, I have these warnings:
I do not know if they are related to the problem, this is a command that does not work:
Код:
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.
Код:
Код: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; }