error 001: expected token: ";", but found ")"
#1

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
These are the lines and that's the error:

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.

Any ideas of why?
Reply
#2

Add this at top of your script and try again !!!!
pawn Код:
#include <a_samp>
Reply
#3

While, giving us your lines. Make sure to actually show us that "ONE" line please or atleast point it out.
Reply
#4

okay,
Reply
#5

Line 15:
pawn Код:
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
Line 16:
pawn Код:
SendClientMessageToAll(COLOR_GREY,str); //let everybody know what you did, this will send the message to everyone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)