20.01.2011, 13:22
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;
}