sscanf

Započeo Nobody.aMx
25. Nov. 2017.
330
pregleda
4
postova
Nexy Afera
5
Underboss
25. Nov. 2017.
Skripta koju koristim: Nije bitno
Detaljan opis problema: ne razumem bas ovaj sscanf, nikada nisam koristio 😛 ( Mogu uradit preko Dialoga al ae bar nes da bude sscanf )
Dio skripte:
YCMD:trac(playerid, params[], help)
{
  if(UlogovanProvera == 0) return SCM(playerid,-1,""SRVBOJA"CountryWar | "BELA"Morate se ulogovati da bi koristili ovu komandu!");
    if(PlayerInfo < 1338) return SCM(playerid,-1,""SRVBOJA"CountryWar | "BELA"Samo Vlasnik!");
    if(AdminDuty == 0) return SCM(playerid,-1,""SRVBOJA"CountryWar | "BELA"Morate biti na admin duznosti!");
    new time;
    if(sscanf(params,"d", time)) return SendClientMessage(playerid, -1,""SRVBOJA"CountryWar - "BELA"Koristi: /rac vreme");
    if (time < 1 || time > 5)
    {
      new string;
      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..
Danisoni
5
Godfather
25. Nov. 2017.
new time u new time
expressoboy123
5
Godfather
25. Nov. 2017.

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
Nexy Afera
5
Underboss
26. Nov. 2017.
Ma u dialoge sam stavio lakse i bolje hah

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha