C:\Users\ArcticbytesRL\Desktop\MrM Original\gamemodes\mrm.pwn(30528) : warning 219: local variable "money" shadows a variable at a preceding level
C:\Users\ArcticbytesRL\Desktop\MrM Original\gamemodes\mrm.pwn(30528) : warning 204: symbol is assigned a value that is never used: "money"
if(strcmp("/givemoney", cmd, true) == 0)
{
if(IsPlayerConnected(playerid))
{
new giveplayerid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [playerid] [betrag]");
return 1;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [playerid] [betrag]");
return 1;
}
new money = strval(tmp);<<<<<<----------------
if(SpielerInfo[playerid][Admin] >= 6)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GibGeld(giveplayerid, money);
format(string, sizeof(string), "[ADMIN] %s hat %s Geld gegeben. Betrag: %s$", SpielerName(playerid), SpielerName(giveplayerid),money);
SendClientMessage(COLOR_BLUE, 1, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Admin.");
}
}
return 1;
}
Was muss ich tuhn?
mfg