Jump to content
  • 0

4 warninguri


GiGiMuScHi

Question

Am 4 warninguri ci nu stiu cum sa le rezolv.

C:\Documents and Settings\Administrator\Desktop\ \samp03\gamemodes\X-ZoneRP.pwn(160) : warning 201: redefinition of constant/macro (symbol "MAX_PLAYER_ATTACHED_OBJECTS")

C:\Documents and Settings\Administrator\Desktop\ \samp03\gamemodes\X-ZoneRP.pwn(14820) : warning 204: symbol is assigned a value that is never used: "string"

C:\Documents and Settings\Administrator\Desktop\ \samp03\gamemodes\X-ZoneRP.pwn(16340) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level

C:\Documents and Settings\Administrator\Desktop\ \samp03\gamemodes\X-ZoneRP.pwn(52352) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          10868 bytes

Code size:          2121784 bytes

Data size:          6955856 bytes

Stack/heap size:      16384 bytes; estimated max. usage=5184 cells (20736 bytes)

Total requirements: 9104892 bytes

4 Warnings.

Linia 160 :

#define MAX_PLAYER_ATTACHED_OBJECTS 6

Linia 14820:

new string[64];

public OnPlayerUpdateEx(playerid)

{

new string[64];

if(IsPlayerConnected(playerid))

{

if(gPlayerLogged[playerid])

{

new string3[64];

new playername3[MAX_PLAYER_NAME];

GetPlayerName(playerid, playername3, sizeof(playername3));

format(string3, sizeof(string3), "users/%s.ini", playername3);

new File: hFile = fopen(string3, io_write);

if (hFile)

{

new var[64];

format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);

PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);

PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid);

format(var, 64, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);

format(var, 64, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);

si restul nu am pus tot

Linia 16340:

new giveplayerid, moneys, glasseid, skin, idx, id;

public OnPlayerCommandText(playerid, cmdtext[])

{

    dcmd(specplayer, 10, cmdtext);

    dcmd(specoff, 7, cmdtext);

    dcmd(myplate, 7, cmdtext);

new string[256];

new playermoney;

new sendername[MAX_PLAYER_NAME];

new giveplayer[MAX_PLAYER_NAME];

new playername[MAX_PLAYER_NAME];

new cmd[256];

new tmp[256];

new giveplayerid, moneys, glasseid, skin, idx, id;

new idcar = GetPlayerVehicleID(playerid);

new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));

cmd = strtok(cmdtext, idx);

Linia 52352:

new giveplayerid;

public OnPlayerText(playerid, text[])

{

new giver[MAX_PLAYER_NAME];

new sendername[MAX_PLAYER_NAME];

new giveplayer[MAX_PLAYER_NAME];

new tmp[256];

new string[256];

new giveplayerid;

for(new i=0; i<MAX_PLAYERS; i++)

if(FindIP(text)) ///

{

Respecta Si Vei Fi Respectat !!!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

Mai am un warning:

C:\Documents and Settings\Administrator\Desktop\X-Zone\X-ZoneRP.pwn(16357) : warning 219: local variable "giveplayerid" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          10896 bytes

Code size:          2129924 bytes

Data size:          6947884 bytes

Stack/heap size:      16384 bytes; estimated max. usage=5184 cells (20736 bytes)

Total requirements: 9105088 bytes

1 Warning.

Respecta Si Vei Fi Respectat !!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.