Quote:
Originally Posted by MattTucker
|
Thanks, but there is no community nor scripter. I just need a fella to help me out
Quote:
Originally Posted by Mionee
Something like this, hasn't been tested though:
pawn Код:
#include <a_samp> #include <zcmd>
new timer[MAX_PLAYERS]; new timervalue[MAX_PLAYERS]; new bool: timeractivated[MAX_PLAYERS];
CMD:startclock(playerid, params); { if(!timeractivated[playerid]) { timer[playerid] = SetTimerEx("fastclock", 750, true, "i", playerid); timervalue[playerid] = 0;
timeractivated[playerid] = true; SendClientMessage(playerid, -1, "YSOHNUL activated!"); }
else if(timeractivated[playerid]) { timervalue[playerid] = 0; KillTimer(timer[playerid]);
timeractivated[playerid] = false; SendClientMessage(playerid, -1, "YSOHNUL deactivated!"); }
return true; }
forward fastclock(playerid); public fastclock(playerid) { if(timervalue[playerid] < 23) { timervalue[playerid] += 1; SetPlayerTime(playerid, timervalue[playerid]); } else if(timervalue[playerid] => 23) { timervalue[playerid] = 0; SetPlayerTime(playerid, timervalue[playerid]); }
return true; }
|
Documents\Server\filterscripts\fasttime.pwn(9) : error 055: start of function body without function header
Documents\Server\filterscripts\fasttime.pwn(10) : error 010: invalid function or declaration
Documents\Server\filterscripts\fasttime.pwn(15) : error 010: invalid function or declaration
Documents\Server\filterscripts\fasttime.pwn(19) : error 010: invalid function or declaration
Documents\Server\filterscripts\fasttime.pwn(24) : error 010: invalid function or declaration
Documents\Server\filterscripts\fasttime.pwn(2
: error 010: invalid function or declaration
Documents\Server\filterscripts\fasttime.pwn(37) : warning 202: number of arguments does not match definition
Documents\Server\filterscripts\fasttime.pwn(40) : warning 211: possibly unintended assignment
Documents\Server\filterscripts\fasttime.pwn(40) : error 029: invalid expression, assumed zero
Documents\Server\filterscripts\fasttime.pwn(40) : warning 215: expression has no effect
Documents\Server\filterscripts\fasttime.pwn(40) : error 001: expected token: ";", but found ")"
Documents\Server\filterscripts\fasttime.pwn(40) : error 029: invalid expression, assumed zero
Documents\Server\filterscripts\fasttime.pwn(40) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
10 Errors.