26.08.2012, 14:29
pawn Код:
new str[128]; //create a new string
format(str, sizeof(str), "[Sentence] %s has been jailed by %s for %d minutes.", Name(targetid), Name(playerid), minutes); //get the admin's name, the player's and show the minutes
SendClientMessageToAll(COLOR_GREY,str); //let everybody know what you did, this will send the message to everyone
JailTimer[targetid] = SetTimer("Unjail", minutes*60*1000, false); //now HERE we're setting the jailtimer from the variable created, it will calculate the milliseconds to seconds, multiplicated with the amount of minutes we gave
Quote:
C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(1516) : error 012: invalid function call, not a valid address C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(1516) : warning 215: expression has no effect C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(1516) : error 001: expected token: ";", but found ")" C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(1516) : error 029: invalid expression, assumed zero C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(1516) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |