warning 219: local variable "giveplayerid" shadows a variable at a preceding level
#2

You have giveplayerid as a global (in top of your script), pick another thing like:

pawn Код:
if(strcmp(cmd, "/bemutatkoz",true) == 0)
    {
        new guyid; <<<WARNING!
    //  if(sscanf(params, "u", guyid)) return SendClientMessage(playerid, 0x33AA33AA, "(( /bemutatkoz [playerid] ))");
        if(playerid == guyid) return SendClientMessage(playerid, 0x33AA33AA, "(( Magadnak nem mutatkozhatsz be! ))");
        new USER_FILE[64];
        format(USER_FILE, sizeof(USER_FILE), "SFSUsers/%s.ini", GetPlayerNameEx(playerid));
        if(DOF2_GetInt(USER_FILE, GetPlayerNameEx(guyid)) == 1) return SendClientMessage(playerid, 0x33AA33AA, "(( M?r ismeritek egym?st! ))");
        new iStr[70];
        format(iStr, sizeof(iStr), "(( Bemutatkoz?s kйrelmet elkьldted neki: %s ))", GetPlayerNameEx(guyid));
        SendClientMessage(playerid, 0x33AA33AA, iStr);
        format(iStr, sizeof(iStr), "Udv! %s vagyok йs a bar?tod szeretnйk lenni.\nElfogadod?", GetPlayerNameEx(playerid));
        ShowPlayerDialog(guyid, AMIGODIALOG, DIALOG_STYLE_MSGBOX, "?n elfogadja?", iStr, "Igen", "Nem");
        SetPVarInt(guyid, "AmigoRequest", playerid);
        return 1;
    }
I hope that I helped you!.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)