(POMOC) Nece da stavi int

Započeo Tony Zero, Septembar 27, 2010, 13:02:20 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Ja imam komandu za stavljane interiora ali samo sebi mogu staviti int..danas drugi igraci traze da im porpavim int a ja to ne mogu jer ova komanda popravlja samo meni
Sta trebda da stavim
Evo komande
if(strcmp(cmd, "/setint", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setint [interiorid]");
return 1;
}
new intid;
intid = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerInterior(playerid,intid);
PlayerInfo[playerid][pInt] = intid;
format(string, sizeof(string), "   interiorid %d.", intid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command !");
}
}
return 1;
}




cristiane

if(strcmp(cmd, "/setint", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "KORISTI: /setint [Player ID] [interiorid]");
                return 1;
            }
            new playa;
            playa = ReturnUser(tmp);
            new intid;
            tmp = strtok(cmdtext, idx);
            intid = strvalEx(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        SetPlayerInterior(playa, intid);
                        PlayerInfo[playa][pInt] = intid;
                        format(string, sizeof(string), "   Namjestio si %s interior na %d.", giveplayer, intid);
                        SendClientMessage(playerid, COLOR_GRAD1, string);
                        format(string, sizeof(string), "   %s ti je namjestio interior na %d.", sendername, intid);
                        SendClientMessage(playa, COLOR_GRAD1, string);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Nemas prava !!");
            }
        }
        return 1;


Izbrisi tu komandu ubaci ovu,radit ce ti.



26 errora cesto znaci da si zaboravio Jednu }