SA-MP Forums Archive
lil question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: lil question (/showthread.php?tid=239225)



lil question - tanush - 13.03.2011

On my server how do i get the time like in gta san andreas top right
http://www.neverandforever.com/movab...ics/gta-sa.jpg


Re: lil question - [WF]Demon - 13.03.2011

https://sampwiki.blast.hk/wiki/TogglePlayerClock


Re: lil question - tanush - 13.03.2011

well i add that but time wont show so i did
pawn Код:
TogglePlayerClock(playerid, 1);
and i got
pawn Код:
D:\Users\Tanush\Desktop\samp dm\gamemodes\DM.pwn(78) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
NVM NVM I FIXED IT BY PUTTING UNDER ONPLAYERCONNECT


Re: lil question - SchurmanCQC - 13.03.2011

Where are you using that function? It DOES NOT WORK IN ONGAMEMODEINIT because ONGAMEMODEINIT cannot return a PLAYERID.


Put
pawn Код:
TogglePlayerClock(playerid,1);
in OnPlayerConnect like so:
pawn Код:
public OnPlayerConnect(playerid)
{
    TogglePlayerClock(playerid,1);
    return 1;
}



Re: lil question - tanush - 13.03.2011

i already know, look at top