new jacktimer[MAX_PLAYERS];
jacktimer[playerid] = SetTimerEx("jcounting",1000,true,"i",playerid);
public jcounting(playerid)
{
Bit16_Set(jcount,playerid,Bit16_Get(jcount,playerid) -1);
if(Bit16_Get(jcount,playerid) <1)
{
TextDrawHideForPlayer(playerid,Textdraw7);
TextDrawHideForPlayer(playerid,Textdraw8);
KillTimer(jacktimer[playerid]);
}
format(String, sizeof(String), "%i", Bit16_Get(jcount,playerid));
TextDrawSetString(Textdraw8,String);
return 1;
}
Textdraw7; Textdraw8;
hm... suspect #1:
Код:
Textdraw7; Textdraw8; |
new Textdraw7; new Textdraw8;
new Textdraw7[MAX_PLAYERS]; new Textdraw8[MAX_PLAYERS];
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(146) : error 033: array must be indexed (variable "Textdraw7")
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(147) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(148) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(149) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(150) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(151) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(152) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(153) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(155) : error 033: array must be indexed (variable "Textdraw8")
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(156) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(157) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(158) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(159) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(160) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(161) : error 035: argument type mismatch (argument 1)
C:\Users\Lars\Desktop\Sa-mp\gamemodes\suncobrob.pwn(162) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Textdraw7 = TextDrawCreate(3.000000, 274.000000, "Job Cooldown");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.500000, 1.000000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
Textdraw8 = TextDrawCreate(54.000000, 293.000000, "_");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, 16777215);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
new MaxPlayers=GetMaxPlayers(); for(new id=0;id<MaxPlayers;id++) { Textdraw7[id] = TextDrawCreate(3.000000, 274.000000, "Job Cooldown"); TextDrawBackgroundColor(Textdraw7[id], 255); TextDrawFont(Textdraw7[id], 1); TextDrawLetterSize(Textdraw7[id], 0.500000, 1.000000); TextDrawColor(Textdraw7[id], -1); TextDrawSetOutline(Textdraw7[id], 0); TextDrawSetProportional(Textdraw7[id], 1); TextDrawSetShadow(Textdraw7[id], 1); Textdraw8[id] = TextDrawCreate(54.000000, 293.000000, "_"); TextDrawBackgroundColor(Textdraw8[id], 255); TextDrawFont(Textdraw8[id], 1); TextDrawLetterSize(Textdraw8[id], 0.500000, 1.000000); TextDrawColor(Textdraw8[id], 16777215); TextDrawSetOutline(Textdraw8[id], 0); TextDrawSetProportional(Textdraw8[id], 1); TextDrawSetShadow(Textdraw8[id], 1); }