Help me to fix it.
#1

The problem is in
pawn Код:
if(strcmp(text[playerid],str4,false) == 0)
So this doesnt unlock the acheivement and still doesnt unlocks I tried alot and I bet the problem is in the above line I gave and the full function is this. given below
pawn Код:
new filen[240];
    format(filen,sizeof(filen),"SecretPhrase.ini");
    new str4[128];
    format(str4,sizeof(str4),"%s",dini_Get(filen,"SecretPhrase"));
    if(strcmp(text[playerid],str4,false) == 0)
    {
    if(PlayerInfo[playerid][ClanAward] == 0)
    {
    SendClientMessage(playerid,COLOR_YELLOW,"You Have unlocked the achievement 'Secret Phrase' and received 25 Gamescore Points.");
    SendClientMessage(playerid,COLOR_YELLOW,"BOOM! Congratulations! Keep quiet. Don't tell anyone otherwise You banned..?");
    SendClientMessage(playerid,COLOR_RED,"Tim's FreeRoam/RolePlay - SkR Clans FreeRoam/RolePlay :-");
    SendClientMessage(playerid,COLOR_SAMP,"Congratulations! Your acheivement 'Secret Phrase' is unlocked. You so fucking smart dude");
    SendClientMessage(playerid,COLOR_GREY,"You've been given a check of 100k by the Server Team");
    PlayerInfo[playerid][GameScore] += 25;
    new str3[240],str4[240],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format(str4,sizeof(str4),"Secret Phrase, How he knew that?");
    format(str3,sizeof(str3),"%s has unlocked the acheivement, ""%s""",name,str4);
    SendAdminMessage(COLOR_YELLOW,1,str3);
    GivePlayerMoney(playerid, 100000);
    GameTextForPlayer(playerid, "$100000", 3000, 1);
    PlayerInfo[playerid][ClanAward] = 1;
    }
    }
Reply


Messages In This Thread
Help me to fix it. - by RyanLucenzo - 06.09.2014, 17:15
Re: Help me to fix it. - by RyanLucenzo - 06.09.2014, 18:06
Re: Help me to fix it. - by RyanLucenzo - 07.09.2014, 10:07
Re: Help me to fix it. - by Barnwell - 07.09.2014, 11:25
Re: Help me to fix it. - by Eth - 07.09.2014, 11:40

Forum Jump:


Users browsing this thread: 1 Guest(s)