Is this imposible ?
#6

I`m trying ...

pawn Код:
if(strcmp(cmd, "/replace", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "/replace [PlayerName]");
                return 1;
            }
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(playerid != INVALID_PLAYER_ID)
                {
                    SetPVarInt(playerid,"RazVan",tmp); // ERROR LINE (27460)
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "Player not online...");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, "U are not an admin.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD2, "U didn`t connect yet.");
        }
    }
I don`t think it`s right but it should look something like that
Errors :
D:\SAMP Server R7\gamemodes\arth.pwn(27460) : error 035: argument type mismatch (argument 3)

Can someone correct me? Hiddos? Help ?
It would be really great if i could do this and i would definetly release it on sa-mp.com !

So... RazVan is an owner of a car, and when i would type /replace MihaiTZa55, RazVan`s car would be replaced as MihaiTZa55`s car (mine) but i got that error... Help ?

Should I user format( with the %s or somthing ? or something ?
Reply


Messages In This Thread
Is this imposible ? - by mihaitza55 - 30.07.2010, 12:47
Re: Is this imposible ? - by WillyP - 30.07.2010, 12:49
Re: Is this imposible ? - by mihaitza55 - 30.07.2010, 12:51
Re: Is this imposible ? - by Hiddos - 30.07.2010, 13:08
Re: Is this imposible ? - by mihaitza55 - 30.07.2010, 13:10
Re: Is this imposible ? - by mihaitza55 - 30.07.2010, 13:30
Re: Is this imposible ? - by mihaitza55 - 30.07.2010, 13:47
Re: Is this imposible ? - by xyly - 30.07.2010, 18:22
Re: Is this imposible ? - by Kevin_Joshen - 30.07.2010, 19:31
Re: Is this imposible ? - by Kar - 30.07.2010, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)