[pomoc] report

Započeo pawno.exe, Decembar 19, 2011, 20:31:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

pawno.exe

Skripta koju koristim:Raven
imam problem sa reportom htjeo bih da kad posaljem report da nemoram ukucavat ime onoga koga hocu prijaviti nego samo report i text koji hocu
dio skripte:dcmd_report(playerid,params[])
{
new id;
new name[MAX_PLAYER_NAME];
new rname[MAX_PLAYER_NAME];
new text[256];
new string[256];
GetPlayerName(playerid,name,sizeof(name));
if(sscanf(params,"us",id,text)) SendClientMessage(playerid,COLOR_NICERED,"{66fa03}BC Pomoc|{00C0FF} /report [ID Igraca] [Razlog]");
else if(id == INVALID_PLAYER_ID)
{
SendClientMessage(playerid,COLOR_NICERED,"{66fa03}[BC]: {F3FF02}Igrac sa tim ID-om se ne nalazi na serveru!");
}
else
{
GetPlayerName(id,rname,sizeof(rname));
format(string,sizeof(string),"{F81414}Prijava{FFFFFF} |{6EF83C} %s (%d){FFFFFF} je prijavio {F3FF02} %s (%d)",name,playerid,rname,id);
ABroadCast(COLOR_GREY,string,1);
format(string,sizeof(string),"{FFFFFF}Prijava:{F81414} %s",text);
ABroadCast(COLOR_GREY,string,1);
SendClientMessage(playerid,COLOR_GREY,"{F3FF02}Vasa prijava poslana, sacekajte odgovor admina.");
}
return 1;
}

dcmd_report(playerid,params[])
{
new id;
new name[MAX_PLAYER_NAME];
new text[256];
new string[256];
GetPlayerName(playerid,name,sizeof(name));
if(sscanf(params,"us",id,text)) SendClientMessage(playerid,COLOR_NICERED,"{66fa03}BC Pomoc|{00C0FF} /report [Razlog]");
else
{
GetPlayerName(id,sizeof(rname));
format(string,sizeof(string),"{F81414}Prijava{FFFFFF} |{6EF83C} %s (%d){FFFFFF} je prijavio {F3FF02} %s (%d)",name,playerid,id);
ABroadCast(COLOR_GREY,string,1);
format(string,sizeof(string),"{FFFFFF}Prijava:{F81414} %s",text);
ABroadCast(COLOR_GREY,string,1);
SendClientMessage(playerid,COLOR_GREY,"{F3FF02}Vasa prijava poslana, sacekajte odgovor admina.");
}
return 1;
}

probaj ovako

pawno.exe

Citat: Prof.Dr.Johny poslato Decembar 19, 2011, 20:48:41 POSLE PODNE
dcmd_report(playerid,params[])
{
new id;
new name[MAX_PLAYER_NAME];
new text[256];
new string[256];
GetPlayerName(playerid,name,sizeof(name));
if(sscanf(params,"us",id,text)) SendClientMessage(playerid,COLOR_NICERED,"{66fa03}BC Pomoc|{00C0FF} /report [Razlog]");
else
{
GetPlayerName(id,sizeof(rname));
format(string,sizeof(string),"{F81414}Prijava{FFFFFF} |{6EF83C} %s (%d){FFFFFF} je prijavio {F3FF02} %s (%d)",name,playerid,id);
ABroadCast(COLOR_GREY,string,1);
format(string,sizeof(string),"{FFFFFF}Prijava:{F81414} %s",text);
ABroadCast(COLOR_GREY,string,1);
SendClientMessage(playerid,COLOR_GREY,"{F3FF02}Vasa prijava poslana, sacekajte odgovor admina.");
}
return 1;
}

probaj ovako



nemoze nece opet ja bih htjeo ovako kad ukucas /report npr imam problem sa serverom da mi dole izbaci
|R|:Ime_Prezime (ID):imam problem sa serverom <----- ovo da salje adminima
Vasa prijava je poslana cekajte odgovor admina

dcmd_report(playerid,params[])
{
new name[MAX_PLAYER_NAME];
new text[256];
new string[256];
GetPlayerName(playerid,name,sizeof(name));
if(sscanf(params,"us",id,text)) SendClientMessage(playerid,COLOR_NICERED,"{66fa03}BC Pomoc|{00C0FF} /report [Razlog]");
else
{
format(string,sizeof(string),"%s (%d) je posalo prijavu !",name,playerid);
ABroadCast(COLOR_GREY,string,1);
format(string,sizeof(string),"{FFFFFF}Tekst:{F81414} %s",text);
ABroadCast(COLOR_GREY,string,1);
SendClientMessage(playerid,COLOR_GREY,"{F3FF02}Vasa prijava poslana, sacekajte odgovor admina.");
}
return 1;
}

probaj ovako sad bi trebalo radit ak neide