[pomoc]/stats ID

Započeo ‹Fox›, Novembar 16, 2010, 16:55:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

radim komandu stats sa ZCMD-om i prije sam skriptao pa prestao i malo zaboravio...ugl. akd odem na server ukucam /stats nista se ne pokaze ni kad ukucam /stats ID
evo komande
Kod: c
CMD:stats(playerid, params[])
{
new userid;
new string[128];
new string1[128];
new string2[128];
new string3[128];
new string4[128];
new ime[24];
if(sscanf(params, "u", userid))
{
GetPlayerName(playerid, ime, sizeof(ime));
format(string, sizeof(string), "||----------status igraca %s----------||", ime);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string1, sizeof(string1), "Novci: %d", GetPlayerMoney(playerid));
SendClientMessage(playerid, COLOR_GREEN, string1);
format(string2, sizeof(string2), "Bodovi: %d", GetPlayerScoreplayerid));
SendClientMessage(playerid, COLOR_GREEN, string2);
format(string3, sizeof(string3), "Ubojstava: %d", kills[playerid]);
SendClientMessage(playerid, COLOR_GREEN, string3);
format(string4, sizeof(string4), "Smrti: %d", deaths[playerid]);
SendClientMessage(playerid, COLOR_GREEN, string4);
}
else
{
GetPlayerName(userid, ime, sizeof(ime));
format(string, sizeof(string), "||----------status igraca %s----------||", ime);
SendClientMessage(playerid, COLOR_GREEN, string);
format(string1, sizeof(string1), "Novci: %d", GetPlayerMoney(userid));
SendClientMessage(playerid, COLOR_GREEN, string1);
format(string2, sizeof(string2), "Bodovi: %d", GetPlayerScore(playerid));
SendClientMessage(playerid, COLOR_GREEN, string2);
format(string3, sizeof(string3), "Ubojstava: %d", kills[userid]);
SendClientMessage(playerid, COLOR_GREEN, string3);
format(string4, sizeof(string4), "Smrti: %d", deaths[userid]);
SendClientMessage(playerid, COLOR_GREEN, string4);
}
return 1;
}



Koristi

Kod: c
stock PokaziStats(id)
{
	new
	   string[128],
	   ime[MAX_PLAYER_NAME]
	;
    GetPlayerName(playerid, ime, MAX_PLAYER_NAME);
    format(string, sizeof(string), "||----------status igraca %s----------||", ime);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Novci: %d", GetPlayerMoney(playerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Bodovi: %d", GetPlayerScoreplayerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Ubojstava: %d", kills[playerid]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Smrti: %d", deaths[playerid]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return true;
}
Kristijan Stipić

Citat: [H]265 poslato Novembar 16, 2010, 17:13:21 POSLE PODNE
Koristi

Kod: c
stock PokaziStats(id)
{
	new
	   string[128],
	   ime[MAX_PLAYER_NAME]
	;
    GetPlayerName(playerid, ime, MAX_PLAYER_NAME);
    format(string, sizeof(string), "||----------status igraca %s----------||", ime);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Novci: %d", GetPlayerMoney(playerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Bodovi: %d", GetPlayerScoreplayerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Ubojstava: %d", kills[playerid]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Smrti: %d", deaths[playerid]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return true;
}


gle treba mi da kad upise samo /stats da mu pokaze njegov stats a kad upise /stats ID da mu pokaze stats od tog ID

Citat: [H]265 poslato Novembar 16, 2010, 17:13:21 POSLE PODNE
Koristi

Kod: c
stock PokaziStats(id)
{
	new
	   string[128],
	   ime[MAX_PLAYER_NAME]
	;
    GetPlayerName(playerid, ime, MAX_PLAYER_NAME);
    format(string, sizeof(string), "||----------status igraca %s----------||", ime);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Novci: %d", GetPlayerMoney(playerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Bodovi: %d", GetPlayerScoreplayerid));
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Ubojstava: %d", kills[playerid]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    format(string, sizeof(string), "Smrti: %d", deaths[playerid]);
    SendClientMessage(playerid, COLOR_GREEN, string);
    return true;
}


Ovdje ce ti izbacivat error Undefined simbol playerid jer si kao parametar funkcije stavio id...
Vikend je policija nas hvata,
vikend je ode cijela plata,
oko nas stvari ukradene,
sve smo dali na planove i sheme..
||||:=:=:=:=:=:=::=:=:=:=:=:=:=:THE IVEX:=:=:=:=:=:=:=:=:=::=:=:=:=:=:=::=:|||| 


PS: Ne saljite mi nikakve pm jer neodgovaram na njih! Ako trebate nes pitajte ove pr0 skriptere pa neka vam kazu!Hvala !

black_dota

malo je glupo da ja mogu videti nekom drugom stats :S

makelele

a pa admin GS treba gledati drugom igracu

Citat: BoRis! poslato Novembar 16, 2010, 19:55:59 POSLE PODNE
a pa admin GS treba gledati drugom igracu
Citat: black_dota poslato Novembar 16, 2010, 19:51:59 POSLE PODNE
malo je [cenzura]o da ja mogu videti nekom drugom stats :S

ovo tu je ***** games server (stavio sam "*****" da mi neko ne ukrade ime :)) nije ovo RP

black_dota

kazem da je glupo jer ne vidim nigde da to samo admin moze koristiti pa je glupo da ja nekom vidim stats :S

Citat: black_dota poslato Novembar 16, 2010, 20:17:42 POSLE PODNE
kazem da je [cenzura]o jer ne vidim nigde da to samo admin moze koristiti pa je [cenzura]o da ja nekom vidim stats :S
a na svaki server DM/stunt/fan/games na koji sam ja isao bilo je tako kad upises stats otvori ti tvoje statse a stats id.........

black_dota