sscanf


Započeo Nobody.aMx, Novembar 25, 2017, 23:32:59 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Nije bitno
Detaljan opis problema: ne razumem bas ovaj sscanf, nikada nisam koristio :P ( Mogu uradit preko Dialoga al ae bar nes da bude sscanf )
Dio skripte:
YCMD:trac(playerid, params[], help)
{
   if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""SRVBOJA"CountryWar | "BELA"Morate se ulogovati da bi koristili ovu komandu!");
    if(PlayerInfo[playerid][pAdmin] < 1338) return SCM(playerid,-1,""SRVBOJA"CountryWar | "BELA"Samo Vlasnik!");
    if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""SRVBOJA"CountryWar | "BELA"Morate biti na admin duznosti!");
    new time[60];
    if(sscanf(params,"d", time)) return SendClientMessage(playerid, -1,""SRVBOJA"CountryWar - "BELA"Koristi: /rac vreme");
    if (time < 1 || time > 5)
    {
       new string[156];
       format(string, sizeof(string), ""SRVBOJA"CountryWar - "BELA"Admin je pokrenuo respawn svih vozila! "CRVENA"(%ds)");
       ractimer = SetTimerEx("Respawn", time, false, "i", playerid);
    }
   return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
C:\Users\iwanmf\Desktop\NiceTRY\gamemodes\cwrp.pwn(8656) : error 033: array must be indexed (variable "time")
C:\Users\iwanmf\Desktop\NiceTRY\gamemodes\cwrp.pwn(8660) : error 035: argument type mismatch (argument 2)



Ako moze neko da uradi YCMD sa max vreme 5min a min vreme 10sec?
I u SCMTA da posalje svim igracima za koliko je rac pokrenut..
Poslednja Izmena: Novembar 26, 2017, 10:59:18 PRE PODNE od anDro_


Specifier(s)			Name				Example values
	i, d			Integer				1, 42, -10
	c			Character			a, o, *
	l			Logical				true, false
	b			Binary				01001, 0b1100
	h, x			Hex				1A, 0x23
	o			Octal				045 12
	n			Number				42, 0b010, 0xAC, 045
	f			Float				0.7, -99.5
	g			IEEE Float			0.7, -99.5, INFINITY, -INFINITY, NAN, NAN_E
	u			User name/id (bots and players)	Y_Less, 0
	q			Bot name/id			ShopBot, 27
	r			Player name/id			Y_Less, 42

Ma u dialoge sam stavio lakse i bolje hah