invite Problem
#1

It works not. Pls Help

pawn Код:
enum pInfo
{

    Money,
    Deaths,
    Kills,
    ServerTime,
    Skin,
    Leader,
    Team
}
pawn Код:
if (strcmp(cmd, "/invite", true)==0)
    {
        if(IsPlayerAdmin(playerid))
        {
        new tmp[256];
        new zielplayer,jobid;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, white, "Benutze: /invite [ID] [JobID]");
            return 1;
        }
        zielplayer = strval(tmp);

        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) {
            SendClientMessage(playerid, white, "Benutze: /invite [ID] [JobID]");
            return 1;
        }
        jobid = strval(tmp);


        if(IsPlayerConnected(zielplayer))
        {

                beruf[zielplayer] = jobid;

               
                format(tmpstring,sizeof(tmpstring),"Der neue Job von %s ist %s",SetPlayerName(zielplayer),berufe[jobid]);
                SendClientMessage(playerid, white,tmpstring);
                format(tmpstring,sizeof(tmpstring),"Dein neuer Job ist %s",berufe[jobid]);
                SendClientMessage(zielplayer, white,tmpstring);

        } else {
            SendClientMessage(playerid, white,"Ungьltige SpielerID");
        }
        }
        return 1;
    }
Reply


Messages In This Thread
invite Problem - by Deluxxe - 20.01.2011, 13:22
AW: invite Problem - by Nero_3D - 20.01.2011, 14:32
Re: invite Problem - by Deluxxe - 20.01.2011, 14:35
Re: invite Problem - by WillyP - 20.01.2011, 14:36
Re: invite Problem - by Deluxxe - 20.01.2011, 14:41
Re: invite Problem - by HyperZ - 20.01.2011, 14:54
Re: invite Problem - by Deluxxe - 20.01.2011, 15:52

Forum Jump:


Users browsing this thread: 3 Guest(s)