A Rare Error
#5

Code:
//============================================[ ROLEPLAY POINT] ====================================================
if(strcmp(cmd, "/giverpp", true) == 0)//mueve esto hacia adelante que quede al raz
    {//de este
        if(PlayerInfo[playerid][Level] >= 3)
        {
            new tmp[256], player1;//el 'tmp2' no hacia funcion y el 'tmp' no estaba definido
            tmp = strtok(cmdtext,idx);//aqui no tenia el ';'
            if(!strlen(tmp)) return SendClientMessage(playerid, yellow, "USAGE: /giverpp [playerid]");
            player1 = strval(tmp);
            if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
            {
                CMDMessageToAdmins(playerid,"GIVERPP");
                SaveToFile("Rpp",string);
                PlayerInfo[player1][Rpp]++;
                format(string, sizeof(string), "You have given a Roleplay Point To \"%s\"", PlayerName2(player1));//aqui faltaba un ')'
                SendClientMessage(playerid,yellow,string);
                if(player1 != playerid)
                    {
                    format(string,sizeof(string),"Administrator \"%s\" has given you a Roleplay Point", PlayerName2(playerid));//aqui tambien un ')'
                    SendClientMessage(player1,yellow,string);
                    SendClientMessageToAll(yellow,"Administrator \"%s\" has given %s a Roleplay Point", PlayerName2(playerid), playerid);
					PlayerInfo[playerid][Rpp]++;
                    }
                } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
            } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
        return 1;
    }
That is what i have
Reply


Messages In This Thread
A Rare Error - by [TDL]OGLoc - 09.01.2011, 23:19
Re: A Rare Error - by blackwave - 09.01.2011, 23:23
Re: A Rare Error - by Souvlaki - 09.01.2011, 23:25
Re: A Rare Error - by ToPhrESH - 09.01.2011, 23:26
Re: A Rare Error - by [TDL]OGLoc - 09.01.2011, 23:42
Re: A Rare Error - by Kyosaur - 09.01.2011, 23:53
Re: A Rare Error - by John_F - 09.01.2011, 23:59
Re: A Rare Error - by Krx17 - 10.01.2011, 00:01
Re: A Rare Error - by [TDL]OGLoc - 10.01.2011, 00:09
Re: A Rare Error - by John_F - 10.01.2011, 00:13

Forum Jump:


Users browsing this thread: 1 Guest(s)