03.02.2009, 22:04
Why wrong they?
First wrong code:
Second wrong code:
Third wrong code:
Fourth wrong code:
WHY WRONG THEY?
Note: I'm sorry for my bad english ..
Код:
D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2040) : warning 219: local variable "pName" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2040) : warning 219: local variable "str" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2056) : warning 219: local variable "PlayerName" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2056) : warning 219: local variable "str" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2072) : warning 219: local variable "PlayerName" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2072) : warning 219: local variable "str" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2085) : warning 219: local variable "PlayerName" shadows a variable at a preceding level D:\WITData Inc\Pawno\WITData Server Resmi Mod\witdata.pwn(2085) : warning 219: local variable "str" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Warnings.
Код:
if(strcmp(cmdtext, "/koruma", true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Koruma oldun! Kendine bir patron bulabilir ve para karsiligi calisabilirsin."); SetPlayerPos(playerid, 1873.952, -1239.715, 15); SetPlayerSkin(playerid,163); GivePlayerWeapon(playerid,29,1500); GivePlayerWeapon(playerid, 24, 100); GivePlayerWeapon(playerid, 16, 10); SetPlayerInterior(playerid,0); new pName[30], str[256]; GetPlayerName(playerid, pName, 30); format(str, 256, "%s adli oyuncu koruma oldu [/koruma]", pName); SendClientMessageToAll(0x0000BBAA, str); SetPlayerColor(playerid,0xAFAFAFAA); }
Код:
if(strcmp(cmdtext, "/polis", true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Polis oldun!Kanun kacaklari ile ilgilenmek senin gцrevin!"); SetPlayerPos(playerid, 1535.499, -1670.019, 15); SetPlayerSkin(playerid,280); GivePlayerWeapon(playerid,29,1500); GivePlayerWeapon(playerid, 24, 100); GivePlayerWeapon(playerid, 16, 10); SetPlayerInterior(playerid,0); new PlayerName[30], str[256]; GetPlayerName(playerid, PlayerName, 30); format(str, 256, "%s adli oyuncu polis oldu [/polis]", PlayerName); SendClientMessageToAll(0x0000BBAA, str); SetPlayerColor(playerid,0x0000BBAA); }
Код:
if(strcmp(cmdtext, "/ceteuyesi", true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Cete ьyesi oldun! Sehirde teror estirmek senin isin!"); SetPlayerPos(playerid, 2467.194, -1673.966, 15); SetPlayerSkin(playerid,107); GivePlayerWeapon(playerid,27,1500); GivePlayerWeapon(playerid, 30, 500); GivePlayerWeapon(playerid, 16, 10); SetPlayerInterior(playerid,0); new PlayerName[30], str[256]; GetPlayerName(playerid, PlayerName, 30); format(str, 256, "%s adli oyuncu cete uyesi oldu [/ceteuyesi]", PlayerName); SendClientMessageToAll(0x0000BBAA, str); SetPlayerColor(playerid,0x33AA33AA); }
Код:
if(strcmp(cmdtext, "/taksisoforu", true) == 0) { SendClientMessage(playerid, COLOR_YELLOW, "Taksi soforu oldun! Para karsiligi oyunculari istedikleri yere gotur!"); SetPlayerPos(playerid, 1280.5682,-1338.2859,13.3725); SetPlayerSkin(playerid,142); SetPlayerInterior(playerid,0); new PlayerName[30], str[256]; GetPlayerName(playerid, PlayerName, 30); format(str, 256, "%s adli oyuncu taksi sofor'u oldu [/taksisoforu]", PlayerName); SendClientMessageToAll(0x0000BBAA, str); SetPlayerColor(playerid,0xFFFF00AA); }
Note: I'm sorry for my bad english ..