Help me ! - 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)
+--- Thread: Help me ! (
/showthread.php?tid=295147)
Help me ! -
RadioRocker - 05.11.2011
Код:
format(stringa, sizeof(stringa), "%d Race is starting in %s Seconds.Type /JoinRace To Join.", RaceName, CountAmount);
TextDrawSetString(Textdraw0, stringa);
TextDrawShowForAll(Textdraw0);
SetTimer("texthidea",%d,false", CountAmount);
I am trying to settimer runs on countamount as it changes the textdraw shown time should also change anyone help when i compile it shows me this error
Код:
C:\Users\Baa\Desktop\rRace.pwn(389) : warning 217: loose indentation
C:\Users\Baa\Desktop\rRace.pwn(1030) : error 029: invalid expression, assumed zero
C:\Users\Baa\Desktop\rRace.pwn(1030) : error 017: undefined symbol "d"
C:\Users\Baa\Desktop\rRace.pwn(1030) : warning 215: expression has no effect
C:\Users\Baa\Desktop\rRace.pwn(1030) : warning 215: expression has no effect
C:\Users\Baa\Desktop\rRace.pwn(1030) : error 001: expected token: ";", but found ")"
C:\Users\Baa\Desktop\rRace.pwn(1030) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Please Help Fast !
Re: Help me ! -
Kar - 05.11.2011
Replace
pawn Код:
SetTimer("texthidea",%d,false", CountAmount);
with
pawn Код:
SetTimer("texthidea", CountAmount, false);
Re: Help me ! -
Mr_Scripter - 05.11.2011
Edit:Late
Re: Help me ! -
RadioRocker - 05.11.2011
@Kar when i replaced it and compiled it showed me this warning
Код:
C:\Users\Baa\Desktop\rRace.pwn(1030) : warning 202: number of arguments does not match definition
Re: Help me ! -
RadioRocker - 05.11.2011
Thnx kar rep+ !
Re: Help me ! -
EvgeN 1137 - 05.11.2011
pawn Код:
SetTimer("texthidea", CountAmount, false);
or
pawn Код:
SetTimerEx("texthidea", CountAmount, false, "d", playerid);
Re: Help me ! -
RadioRocker - 05.11.2011
Thnx but its already fixed