25.10.2012, 07:02
(
Последний раз редактировалось guitarmandanny; 25.10.2012 в 08:05.
)
Hello,
Im getting a Warning, I'm doing a TextDraw for an /arrest command, everything is working perfect, but I still have this warning in PAWNO.
Here is everything
Here's my Script
The Warning is on.
I know its suppose to be set out as
If I use that it doesn't Count down the seconds it just stays on the number I have set , is there a different way to script this...
Im getting a Warning, I'm doing a TextDraw for an /arrest command, everything is working perfect, but I still have this warning in PAWNO.
Here is everything
Код:
C:\Users\Dan\Desktop\samp03e_svr_R2_win32 - Copy\gamemodes\Gamemode.pwn(2961) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
Код:
SendClientMessage(id, 0xFF0000AA, "You have been arrested and put in jail"); SetPlayerPos(id, 197.6661,173.8179,1003.0234); SetPlayerInterior(id, 3); format(string1, sizeof(string1), "%s(%d) Has Been Aarrested By Officer %s(%d)", aname, id, pname, playerid2); SendClientMessageToAll(0xFF0000AA, string1); SendClientMessage(playerid2, 0xFF0000AA, "You have received $4000 For the Arrest."); GivePlayerMoney(playerid2, 4000); SetPlayerScore(playerid2,GetPlayerScore(playerid)+1); JailTime[id] = 60; SetPlayerWantedLevel(playerid, 0); CountdownTextDraw(playerid, JailTextDraw, 60); public CountdownTextDraw(playerid, Text:textid, secondstocount) { if(secondstocount == 0) { TextDrawHideForPlayer(playerid, textid), SpawnPlayer(playerid), SetPlayerInterior(playerid, 0), SendClientMessage(playerid, 0x00FF00FF, "You have been Released!"); } else { new timestring[32]; format(timestring, sizeof(timestring), "%i seconds remaining..", secondstocount); TextDrawSetString(textid, timestring); TextDrawShowForPlayer(playerid, textid); secondstocount--; SetTimerEx("CountdownTextDraw", 1000, false, "ddd", playerid, textid, secondstocount); } return 1; }
Код:
SetTimerEx("CountdownTextDraw", 1000, false, "ddd", playerid, textid, secondstocount);
Код:
SetTimerEx("message", 1000, false, "is", 1337, "hello!");