Detaljan opis problema:Neizbaci mi nista na /stats kad ukucam "/stats".Napravio sam u textdrawovima.
Dio skripte:
//stats
new Text:S0;
new Text:S1;
new Text:S2;
new Text:S3;
new Text:S4;
new Inf = 0;
new INFO;
forward Info();
//
public OnGameModeInit()
{
//Stats
INFO = SetTimer("Info",900,1);
S0 = TextDrawCreate(49.000000, 169.000000, "Stats");
TextDrawBackgroundColor(S0, 255);
TextDrawFont(S0, 0);
TextDrawLetterSize(S0, 0.529999, 1.400000);
TextDrawColor(S0, -1);
TextDrawSetOutline(S0, 1);
TextDrawSetProportional(S0, 1);
TextDrawUseBox(S0, 1);
TextDrawBoxColor(S0, 255);
TextDrawTextSize(S0, 136.000000, 0.000000);
S4 = TextDrawCreate(49.000000, 237.000000, "_");
TextDrawBackgroundColor(S4, 255);
TextDrawFont(S4, 1);
TextDrawLetterSize(S4, 0.500000, 1.000000);
TextDrawColor(S4, -1);
TextDrawSetOutline(S4, 0);
TextDrawSetProportional(S4, 1);
TextDrawSetShadow(S4, 1);
TextDrawUseBox(S4, 1);
TextDrawBoxColor(S4, 255);
TextDrawTextSize(S4, 136.000000, 0.000000);
return 1;
}
public OnGameModeExit()
{
KillTimer(INFO);
TextDrawDestroy(Text:S0);
TextDrawDestroy(Text:S1);
TextDrawDestroy(Text:S2);
TextDrawDestroy(Text:S3);
TextDrawDestroy(Text:S4);
return 1;
}
// Stats
if(strcmp(cmdtext, "/stats", false, 7) == 0)
{
if(Inf == 0)
{
Inf = 1;
SendClientMessage(playerid, WHITE, "{FFFFFF}[{B700FF}SERVER{FFFFFF}]:{B700FF}Ukljucio si pregled svojih statsa.");
}
return 1;
}
//////
// Public stats
public Info()
{
for(new i=0; i{
if(IsPlayerConnected(i) && Inf == 1)
{
TextDrawShowForPlayer(i, Text:S0);
TextDrawShowForPlayer(i, Text:S1);
TextDrawShowForPlayer(i, Text:S2);
TextDrawShowForPlayer(i, Text:S3);
TextDrawShowForPlayer(i, Text:S4);
new tmp; new saat, dkk, saniye; new Para; new Skor; new IP; new Isimi; new Ping;
gettime(saat, dkk, saniye);
Para = GetPlayerMoney(i);
Skor = GetPlayerScore(i);
GetPlayerName(i,Isimi, sizeof(Isimi));
format(tmp, sizeof(tmp), "~w~Vrijeme: ~w~%d:%d:%d~n~~g~~h~Novac: ~w~%d$~n~~s~~h~Score: ~w~%d",saat, dkk, saniye, Para,Skor,IP,i,Ping,SITE);
S1 = TextDrawCreate(49.000000, 188.000000, "");
TextDrawBackgroundColor(S1, 255);
TextDrawFont(S1, 2);
TextDrawLetterSize(S1, 0.210000, 1.000000);
TextDrawColor(S1, -1);
TextDrawSetOutline(S1, 1);
TextDrawSetProportional(S1, 1);
TextDrawUseBox(S1, 1);
TextDrawBoxColor(S1, -1886416897);
TextDrawTextSize(S1, 136.000000, 0.000000);
S2 = TextDrawCreate(49.000000, 205.000000, "");
TextDrawBackgroundColor(S2, 255);
TextDrawFont(S2, 2);
TextDrawLetterSize(S2, 0.210000, 1.000000);
TextDrawColor(S2, -1);
TextDrawSetOutline(S2, 1);
TextDrawSetProportional(S2, 1);
TextDrawUseBox(S2, 1);
TextDrawBoxColor(S2, -1886416897);
TextDrawTextSize(S2, 136.000000, 0.000000);
S3 = TextDrawCreate(49.000000, 222.000000, "");
TextDrawBackgroundColor(S3, 255);
TextDrawFont(S3, 2);
TextDrawLetterSize(S3, 0.190000, 1.000000);
TextDrawColor(S3, -1);
TextDrawSetOutline(S3, 1);
TextDrawSetProportional(S3, 1);
TextDrawUseBox(S3, 1);
TextDrawBoxColor(S3, -1886416897);
TextDrawTextSize(S3, 136.000000, 0.000000);
}
}
} Neke slike/video za lakse dobivanje pomoci(neobavezno):---
