23.12.2014, 20:44
thanks its working but i have problems i delete the textdraw time jail cuz its OnGameModeinit
and i basic it in onplayerconect
have this error
this all textdraw
and i basic it in onplayerconect
have this error
Quote:
D:\ffff\gamemodes\textdraw.pwn(965) : warning 219: local variable "playerid" shadows a variable at a preceding level |
Quote:
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { JailTimer0[playerid] = TextDrawCreate(469.000000, 376.000000, "Time Until Bail:"); TextDrawBackgroundColor(JailTimer0[playerid], 255); TextDrawFont(JailTimer0[playerid], 1); TextDrawLetterSize(JailTimer0[playerid], 0.320000, 1.100000); TextDrawColor(JailTimer0[playerid], -1); TextDrawSetOutline(JailTimer0[playerid], 0); TextDrawSetProportional(JailTimer0[playerid], 1); TextDrawSetShadow(JailTimer0[playerid], 1); JailTimer1[playerid] = TextDrawCreate(497.000000, 389.000000, "Bail:"); TextDrawBackgroundColor(JailTimer1[playerid], 255); TextDrawFont(JailTimer1[playerid], 1); TextDrawLetterSize(JailTimer1[playerid], 0.320000, 1.100000); TextDrawColor(JailTimer1[playerid], -1); TextDrawSetOutline(JailTimer1[playerid], 0); TextDrawSetProportional(JailTimer1[playerid], 1); TextDrawSetShadow(JailTimer1[playerid], 1); JailTimer2[playerid] = TextDrawCreate(523.000000, 390.000000, " "); TextDrawBackgroundColor(JailTimer2[playerid], 255); TextDrawFont(JailTimer2[playerid], 1); TextDrawLetterSize(JailTimer2[playerid], 0.320000, 1.000000); TextDrawColor(JailTimer2[playerid], 10027263); TextDrawSetOutline(JailTimer2[playerid], 0); TextDrawSetProportional(JailTimer2[playerid], 1); TextDrawSetShadow(JailTimer2[playerid], 1); JailTimer3[playerid] = TextDrawCreate(554.000000, 376.000000, "00:00"); TextDrawBackgroundColor(JailTimer3[playerid], 255); TextDrawFont(JailTimer3[playerid], 1); TextDrawLetterSize(JailTimer3[playerid], 0.320000, 1.000000); TextDrawColor(JailTimer3[playerid], 10027263); TextDrawSetOutline(JailTimer3[playerid], 0); TextDrawSetProportional(JailTimer3[playerid], 1); TextDrawSetShadow(JailTimer3[playerid], 1); JailTimer4[playerid] = TextDrawCreate(530.000000, 390.000000, " "); TextDrawBackgroundColor(JailTimer4[playerid], 255); TextDrawFont(JailTimer4[playerid], 1); TextDrawLetterSize(JailTimer4[playerid], 0.320000, 1.000000); TextDrawColor(JailTimer4[playerid], 10027263); TextDrawSetOutline(JailTimer4[playerid], 0); TextDrawSetProportional(JailTimer4[playerid], 1); TextDrawSetShadow(JailTimer4[playerid], 1); } |