Jump to content
  • 0

local variable "playermoney" shadows a variable at a preceding level


Bladex

Question

De la warningul accesta nu porneste sv ajutatima putin va rog frumos!

D:\GM SAMP\samp03\gamemodes\newi.pwn(14522) : warning 219: local variable "playermoney" shadows a variable at a preceding level

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

aceasta este linie

[pawn] new playermoney;[/pawn]

acesta este de jos si de sus: d

[pawn]public OnPlayerCommandText(playerid, 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, idx;

cmd = strtok(cmdtext, idx);

new is1=0;

new r=0;

while(strlen(cmdtext[is1]))[/pawn]

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • 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.