Muss ich es auch shown lassen oder nur createn?
Beiträge von Pagno
-
-
Ist das zufälligerweise das allererste Textdraw im Code, das du erstellst?
Jap.
-
Hey,
habe leider zurzeit ein Problem welches die Box meines Adminduty-Textdraws geschnappt hat.
Die Box der Textdraws ( sind insgesamt 3 Textdraws, davon ist 1 die Hintergrund-Box um es leslich zu machen ).
Die Box wird aber beim Connect angezeigt obwohl dies nicht erwünscht ist bzw. nirgendwo im Script geshowt wird außer bei /aduty.Im /aduty wird es aber auch mit einer Schleife angezeigt :
Code
Alles anzeigenocmd:aduty(playerid,params[]) { new str[128],str2[128]; if(!IsAdmin(playerid,1))return noaccess if(AdminDuty[playerid]==0) { format(str,sizeof(str),"* %s %s meldet sich zum Support an.",RangName(playerid),PlayerName(playerid)); SetPlayerHealth(playerid, 9999); SendClientMessageToAll(0xE10000FF,str); SetPlayerColor(playerid, 0xFF0000FF); AdminDuty[playerid]=1; format(str2,sizeof(str2),"%s im Dienst",RangName(playerid)); adutylabel[playerid]=Create3DTextLabel(str2,ROT,0.0,0.0,0.0,35.2,GetPlayerVirtualWorld(playerid),0); Attach3DTextLabelToPlayer(adutylabel[playerid],playerid,0.0, 0.0, 0.7); for(new i=0; i<sizeof(ReportTd); i++) { TextDrawShowForPlayer(playerid,ReportTd[i]); } } else { format(str,sizeof(str),"* %s %s hat sich vom Support abgemeldet.",RangName(playerid),PlayerName(playerid)); SendClientMessageToAll(0xE10000FF,str); if(pInfo[playerid][fraktion]!=4 && pInfo[playerid][fraktion]!=5 && pInfo[playerid][fraktion]!=6) { SetPlayerColor(playerid, COLOR_PLAYER_SPIELER); } if(pInfo[playerid][fraktion]==4) { SetPlayerColor(playerid, 0x00FFFFFF); } if(pInfo[playerid][fraktion]==5) { SetPlayerColor(playerid, 0xFF5A00FF); } if(pInfo[playerid][fraktion]==6) { SetPlayerColor(playerid, 0xE00000FF); } SetPlayerHealth(playerid, 100); AdminDuty[playerid]=0; Delete3DTextLabel(adutylabel[playerid]); for(new i=0; i<sizeof(ReportTd); i++) { TextDrawHideForPlayer(playerid,ReportTd[i]); } } return 1; }
Die Box wird einfach immer beim Connect angezeigt ( nur die Box ). Habe überall im Script nach gesucht, nirgendwo wird TextDrawShowForPlayer verwendet für ReportTd ( da mit Schleife nur )
Code
Alles anzeigen//Report System ReportTd[0] = TextDrawCreate(493.000000, 188.000000, "_"); TextDrawBackgroundColor(ReportTd[0], 255); TextDrawFont(ReportTd[0], 1); TextDrawLetterSize(ReportTd[0], 0.500000, 11.000000); TextDrawColor(ReportTd[0], -1); TextDrawSetOutline(ReportTd[0], 0); TextDrawSetProportional(ReportTd[0], 1); TextDrawSetShadow(ReportTd[0], 1); TextDrawUseBox(ReportTd[0], 1); TextDrawBoxColor(ReportTd[0], 96); TextDrawTextSize(ReportTd[0], 620.000000, -10.000000);
Das ist die Boxerstellung.
Kann mir einer helfen und sagen wieso dies angezeigt wird?
-
Ok klappt jetzt auch im Las Colinas Gebiet, ich sag es nicht oft genug, danke Jeffry!
-
Also jetzt noch mal ausprinten lassen oder müsste es so "funktionieren"?
-
Jetzt gehts, weiß nicht wieso xD
Code
Alles anzeigen[20:19:23] killerid: 1 [20:19:23] Fraks: 7 != 8 [20:19:23] i: 0 [20:19:23] 2599.618896 >= 1481.674804 [20:19:23] 2599.618896 <= -198.563507 [20:19:23] -1089.090942 >= 1601.513061 [20:19:23] -1089.090942 <= 104.063102 [20:19:23] IsPlayerInGangZone: 0 [20:19:23] 2599.618896 >= 1481.674804 [20:19:23] 2599.618896 <= -198.563507 [20:19:23] -1089.090942 >= 1601.513061 [20:19:23] -1089.090942 <= 104.063102 [20:19:23] i: 1 [20:19:23] 2599.618896 >= 1577.682861 [20:19:23] 2599.618896 <= 663.033020 [20:19:23] -1089.090942 >= 1716.282348 [20:19:23] -1089.090942 <= 719.518920 [20:19:23] IsPlayerInGangZone: 0 [20:19:23] 2599.618896 >= 1577.682861 [20:19:23] 2599.618896 <= 663.033020 [20:19:23] -1089.090942 >= 1716.282348 [20:19:23] -1089.090942 <= 719.518920 [20:19:23] i: 2 [20:19:23] 2599.618896 >= -887.437622 [20:19:23] 2599.618896 <= 1884.725708 [20:19:23] -1089.090942 >= -530.069580 [20:19:23] -1089.090942 <= 2194.636474 [20:19:23] IsPlayerInGangZone: 0 [20:19:23] 2599.618896 >= -887.437622 [20:19:23] 2599.618896 <= 1884.725708 [20:19:23] -1089.090942 >= -530.069580 [20:19:23] -1089.090942 <= 2194.636474 [20:19:23] i: 3 [20:19:23] 2599.618896 >= -2157.219970 [20:19:23] 2599.618896 <= -280.930999 [20:19:23] -1089.090942 >= -2096.298095 [20:19:23] -1089.090942 <= -83.695899 [20:19:23] IsPlayerInGangZone: 0 [20:19:23] 2599.618896 >= -2157.219970 [20:19:23] 2599.618896 <= -280.930999 [20:19:23] -1089.090942 >= -2096.298095 [20:19:23] -1089.090942 <= -83.695899 [20:19:23] i: 4 [20:19:23] 2599.618896 >= 2397.481445 [20:19:23] 2599.618896 <= -1144.288330 [20:19:23] -1089.090942 >= 2636.971435 [20:19:23] -1089.090942 <= -929.464416 [20:19:23] IsPlayerInGangZone: 0 [20:19:23] 2599.618896 >= 2397.481445 [20:19:23] 2599.618896 <= -1144.288330 [20:19:23] -1089.090942 >= 2636.971435 [20:19:23] -1089.090942 <= -929.464416 [20:19:23] Ende. [20:19:23] [kill] drai killed ayylmao Desert Eagle [20:19:27] sscanf warning: Strings without a length are deprecated, please add a destination size. [20:19:34] sscanf warning: Strings without a length are deprecated, please add a destination size. [20:19:42] sscanf warning: Strings without a length are deprecated, please add a destination size. [20:19:42] sscanf warning: String buffer overflow.
-
Das Problem ist dass ich es schon gemacht habe, aber er nichts printet ._.
///
Muss das überhaupt in den stock rein ?
Nicht bei OnPlayerDeath?
-
So habe es im Las Colinas getestet, da habe ich sowie auch der andere keine Nachricht bekommen,aber im Industrial Gebiet hats geklappt, wieso auch immer.
Hier die Log :
Code
Alles anzeigen[19:45:28] [chat] [drai]: kill mal [19:45:32] [chat] [lol]: No Gun [19:45:34] killerid: 2 [19:45:34] Fraks: 8 != 7 [19:45:34] i: 0 [19:45:34] IsPlayerInGangZone: 0 [19:45:34] i: 1 [19:45:34] IsPlayerInGangZone: 0 [19:45:34] i: 2 [19:45:34] IsPlayerInGangZone: 0 [19:45:34] i: 3 [19:45:34] IsPlayerInGangZone: 1 [19:45:34] inwar: 1 [19:45:34] gw: 0 [19:45:34] zoneid: 3 == 3 [19:45:34] Nachricht. [19:45:34] *Gangfight* lol wurde von drai getötet. [19:45:34] ii: 0 (on: 0) [19:45:34] ii: 1 (on: 1) [19:45:34] 8 == 8 || 8 == 7 [19:45:34] Sende Nachricht an 1 [19:45:34] ii: 2 (on: 1) [19:45:34] 7 == 8 || 7 == 7 [19:45:34] Sende Nachricht an 2 [19:45:34] break [19:45:34] i: 4 [19:45:34] IsPlayerInGangZone: 0 [19:45:34] Ende. [19:45:34] [kill] lol killed drai Desert Eagle
Also in dem Gebiet klappts aber in dem anderen nicht xD
-
Habe es in Las Colinas getestet.
-
Also ich war mit dem Kollegen definitiv in der Gangzone drinne, waren sogar an der Flagge
Hier der stock dafür :
Codestock IsPlayerInGangZone(playerid,gangzoneid) { new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); if( Pos[0] >= GangZoneInfo[gangzoneid][pos1] && Pos[0] <= GangZoneInfo[gangzoneid][pos2] && Pos[1] >= GangZoneInfo[gangzoneid][pos3] && Pos[1] <= GangZoneInfo[gangzoneid][pos4] ) return 1; else return 0; }
Und hier noch die enums etc.Code
Alles anzeigenenum gze { Float:pos1, Float:pos2, Float:pos3, Float:pos4, Float:flaggex, Float:flaggey, Float:flaggez, gzowner, bool:inwar, bezeichnung[128] } new GangZoneInfo[][gze] = { {1481.6748,-198.5635,1601.5131,104.0631, 1556.4399,15.3018,24.1641, 0, false, "Red Country Ganggebiet"}, {1577.6829,663.0330,1716.2823,719.5189, 1690.4186,719.8931,10.8203, 0, false, "Randolph Industrial Estate Ganggebiet"}, {-887.4376,1884.7257,-530.0696,2194.6365, -684.7963,2063.0100,60.3828, 0, false, "The Sherman Dam Ganggebiet"}, {-2157.2200,-280.9310,-2096.2981,-83.6959, -2131.3840,-190.6825,35.3203, 0, false, "Doherty Ganggebiet"}, {2397.4814,-1144.2883,2636.9714,-929.4644, 2600.2402,-1093.8079,69.3433, 0, false, "Las Colinas Ganggebiet"} }; #define MAX_GANGWARS 5 new GangGebiet[sizeof(GangZoneInfo)]; new Text3D:GangLabel[sizeof(GangZoneInfo)]; enum egw { zoneid, angreifer, timeleft, secleft, minleft, kills_angreifer, kills_owner } new GangWarInfo[MAX_GANGWARS][egw]; new Text:GangWarTd[MAX_GANGWARS][4];
-
Code
Alles anzeigen[18:51:05] [chat] [drai]: starte gf [18:51:34] killerid: 1 [18:51:34] Fraks: 7 != 8 [18:51:34] i: 0 [18:51:34] IsPlayerInGangZone: 0 [18:51:34] i: 1 [18:51:34] IsPlayerInGangZone: 0 [18:51:34] i: 2 [18:51:34] IsPlayerInGangZone: 0 [18:51:34] i: 3 [18:51:34] IsPlayerInGangZone: 0 [18:51:34] i: 4 [18:51:34] IsPlayerInGangZone: 0 [18:51:34] Ende. [18:51:34] [kill] drai killed lol Desert Eagle [18:51:40] sscanf warning: Strings without a length are deprecated, please add a destination size.
-
Hab gerade mal einfach so in die Log geguckt und dabei folgendes gefunden :
Code[18:18:21] [kill] lol killed drai Desert Eagle [18:18:26] sscanf warning: Strings without a length are deprecated, please add a destination size. [18:18:26] sscanf warning: Strings without a length are deprecated, please add a destination size. [18:18:38] sscanf warning: Strings without a length are deprecated, please add a destination size. [18:18:45] [debug] Run time error 4: "Array index out of bounds" [18:18:45] [debug] Attempted to read/write array element at negative index -1 [18:18:45] [debug] AMX backtrace: [18:18:45] [debug] #0 000c2274 in public GangWarTimer (g=0) at C:\Users\Drai\Desktop\Server\gamemodes\gamemode.pwn:13928
Line 13928 ist :Code
Alles anzeigenforward GangWarTimer(g); public GangWarTimer(g) { if(!GangZoneInfo[GangWarInfo[g][zoneid]][inwar])return 1; <--- 13928-------------------- if(GangWarInfo[g][secleft]==0) { if(GangWarInfo[g][minleft]==0) { new str2[128]; format(str2,sizeof(str2),"[GANGWAR] Der Gangwar wurde beendet."); new str3[128]; if(GangWarInfo[g][kills_angreifer]>GangWarInfo[g][kills_owner]) { format(str3,sizeof(str3),"Die Angreifer haben das Gebiet erobert!"); GangZoneInfo[GangWarInfo[g][zoneid]][gzowner]=GangWarInfo[g][angreifer]; GangZoneHideForAll(GangWarInfo[g][zoneid]); GangZoneShowForAll(GangWarInfo[g][zoneid], GetGangHexColor(GangWarInfo[g][angreifer])); } else { format(str3,sizeof(str3),"Die Besitzer haben das Gebiet verteidigen können."); } for(new pl=0; pl<GetMaxPlayers(); pl++) { if(!PlayerOnline(pl))continue; if(pInfo[pl][fraktion]!=GangWarInfo[g][angreifer] && pInfo[pl][fraktion]!=GangZoneInfo[GangWarInfo[g][zoneid]][gzowner])continue; SendClientMessage(pl,GELB,str2); SendClientMessage(pl,GELB,str3); } GangZoneInfo[GangWarInfo[g][zoneid]][inwar]=false; GangZoneStopFlashForAll(GangWarInfo[g][zoneid]); GangWarInfo[g][zoneid]=-1; GangWarInfo[g][angreifer]=-1; GangWarInfo[g][kills_owner]=-1; GangWarInfo[g][kills_angreifer]=-1; for(new i=0; i<4; i++) { TextDrawDestroy(GangWarTd[g][i]); } return 1; } else { GangWarInfo[g][secleft]=59; GangWarInfo[g][minleft]--; } } new str[240]; format(str,sizeof(str),"~y~%s~y~~n~~n~~g~%s: %d Kills~n~~r~%s: %d Kills",GangZoneInfo[GangWarInfo[g][zoneid]][bezeichnung], FrakInfo[GangZoneInfo[GangWarInfo[g][zoneid]][gzowner]][frakname], GangWarInfo[g][kills_owner], FrakInfo[GangWarInfo[g][angreifer]][frakname], GangWarInfo[g][kills_angreifer]); TextDrawSetString(GangWarTd[g][2], str); format(str,sizeof(str),"%d Minuten verbliebend", GangWarInfo[g][minleft]); TextDrawSetString(GangWarTd[g][3], str); GangWarInfo[g][secleft]--; SetTimerEx("GangWarTimer", 1000, false, "i", g); return 1; }
-
Leider kommt die Nachricht immernoch nicht an...
-
Es erscheint einfach leider kein Nachricht an die Fraktionen die im War sind :
Hier der Code :
Code
Alles anzeigen//Gang-War Kill System for(new i=0; i<sizeof(GangZoneInfo); i++) { if(!IsPlayerInGangZone(killerid, i))continue; if(!GangZoneInfo[i][inwar])continue; for(new gw=0; gw<sizeof(GangWarInfo); gw++) { if(GangWarInfo[gw][zoneid]!=i)continue; if(killerid!=INVALID_PLAYER_ID) { if(pInfo[playerid][fraktion] != pInfo[killerid][fraktion]) { if(pInfo[killerid][fraktion]==GangWarInfo[gw][angreifer]) { GangWarInfo[gw][kills_angreifer]++; } else if(pInfo[killerid][fraktion]==GangZoneInfo[i][gzowner]) { GangWarInfo[gw][kills_owner]++; } new str[128]; format(str,sizeof(str),"*Gangfight* %s wurde von %s getötet.",PlayerName(playerid),PlayerName(killerid)); for(new ii = 0, j = GetPlayerPoolSize(); ii <= j; ii++) { if(!PlayerOnline(ii))continue; if(pInfo[ii][fraktion]!=GangZoneInfo[i][gzowner] && pInfo[ii][fraktion]!=GangWarInfo[gw][angreifer])continue; SendClientMessage(ii, 0x5F704F00, str); } break; } } } break; }
-
Scheint zu klappen zurzeit, danke dir Jeffry & Kaliber.
-
bin grad am Handy aber werde das morgen testen
//
Bekomme 11 Errors da ( habe Maxplayers mit 2 umgetauscht sprich jetzt steht die MAX_PLAYERS zu erst da und dann die 2.
Code
Alles anzeigenC:\Users\Drai\Desktop\Server\gamemodes\gamemode.pwn(8676) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8726) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8727) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8728) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8729) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8730) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8731) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8732) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8733) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8734) : error 032: array index out of bounds (variable "TvTd") C:\Users\Drai\\Desktop\Server\gamemodes\gamemode.pwn(8735) : error 032: array index out of bounds (variable "TvTd") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 11 Errors.
/// Errors sind an der Stelle wo die Textdraws erstellet werden.
-
Hier die Erstellung aller :Code
Alles anzeigenocmd:tv(playerid, params[]) { new str[128]; new pid; if(!IsAdmin(playerid, 1))return noaccess if(gpv(playerid, "TV")==1) { spv(playerid,"TV",0); TogglePlayerSpectating(playerid, false); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0); spv(playerid, "SpectateID", -1); SetPlayerPos(playerid, GetPVarFloat(playerid, "TVx"), GetPVarFloat(playerid, "TVy"), GetPVarFloat(playerid, "TVz")); PlayerTextDrawDestroy(playerid, TvTd[playerid][0]); PlayerTextDrawDestroy(playerid, TvTd[playerid][1]); PlayerTextDrawDestroy(playerid, TvTd[playerid][2]); for(new i=0; i<GetMaxPlayers(); i++) { if(!PlayerOnline(i))continue; if(!IsAdmin(i,1))continue; format(str, sizeof(str), "[ADMIN] %s hat die Beobachtung gestoppt.",PlayerName(playerid)); SendClientMessage(i, 0x0057AEFF, str); } return 1; } if(sscanf(params, "u", pid))return SendClientMessage(playerid, WEIß, "Verwendung: /tv (Spieler/ID)"); if(!PlayerOnline(pid))return SendClientMessage(playerid,GRAU,"Dieser Spieler ist nicht erreichbar."); if(gpv(pid,"TV")==1)return SendClientMessage(playerid,GRAU,"Der Spieler ist selbst im Spectate-Modus."); spv(playerid,"SpectateID", pid); spv(playerid,"TV",1); new basic_floats; GetPlayerPos(playerid,x,y,z); SetPVarFloat(playerid, "TVx", x); SetPVarFloat(playerid, "TVy", y); SetPVarFloat(playerid, "TVz", z); TogglePlayerSpectating(playerid, true); if(IsPlayerInAnyVehicle(pid))PlayerSpectateVehicle(playerid, GetPlayerVehicleID(pid), SPECTATE_MODE_NORMAL); else PlayerSpectatePlayer(playerid, pid, SPECTATE_MODE_NORMAL); FrakBuildingID[playerid]=-1; BuildingID[playerid]=-1; spv(playerid,"ImHaus",-1); format(str,sizeof(str),"[INFO] Du spectatest %s.", PlayerName(pid)); SendClientMessage(playerid, GELB, str); ////////////////////////////BOXXXXXXXXXXXXXXXXXXXXXXXXXXXX TvTd[playerid][0] = CreatePlayerTextDraw(playerid, 419.000000, 361.974060, "usebox"); PlayerTextDrawLetterSize(playerid, TvTd[playerid][0], 0.000000, 9.362349); PlayerTextDrawTextSize(playerid,TvTd[playerid][0], 220.666656, 0.000000); PlayerTextDrawAlignment(playerid, TvTd[playerid][0], 1); PlayerTextDrawColor(playerid,TvTd[playerid][0], 0); PlayerTextDrawUseBox(playerid,TvTd[playerid][0], true); PlayerTextDrawBoxColor(playerid,TvTd[playerid][0], 102); PlayerTextDrawSetShadow(playerid,TvTd[playerid][0], 0); PlayerTextDrawSetOutline(playerid,TvTd[playerid][0], 0); PlayerTextDrawFont(playerid,TvTd[playerid][0], 3); PlayerTextDrawShow(playerid, TvTd[playerid][0]); ///////////////////// TEXTDRAW NUMMER 0 TvTd[playerid][1] = CreatePlayerTextDraw(playerid, 225.666809, 381.629486, " "); PlayerTextDrawBackgroundColor(playerid, TvTd[playerid][1], 255); PlayerTextDrawFont(playerid, TvTd[playerid][1], 1); PlayerTextDrawLetterSize(playerid, TvTd[playerid][1], 0.201332, 0.977777); PlayerTextDrawColor(playerid, TvTd[playerid][1], -1); PlayerTextDrawSetOutline(playerid, TvTd[playerid][1], 1); PlayerTextDrawSetProportional(playerid, TvTd[playerid][1], 1); PlayerTextDrawShow(playerid, TvTd[playerid][1]); ////////////////////////////////////////////////// TEXTDRAW NUMMER 1 TvTd[playerid][2] = CreatePlayerTextDraw(playerid, 254.333328, 358.814849, "Spectate-System"); PlayerTextDrawLetterSize(playerid,TvTd[playerid][2], 0.322333, 2.213925); PlayerTextDrawAlignment(playerid,TvTd[playerid][2], 1); PlayerTextDrawColor(playerid,TvTd[playerid][2], -5963521); PlayerTextDrawSetShadow(playerid,TvTd[playerid][2], 0); PlayerTextDrawSetOutline(playerid,TvTd[playerid][2], 1); PlayerTextDrawBackgroundColor(playerid,TvTd[playerid][2], 51); PlayerTextDrawFont(playerid,TvTd[playerid][2], 2); PlayerTextDrawSetProportional(playerid,TvTd[playerid][2], 1); PlayerTextDrawShow(playerid, TvTd[playerid][2]); SetTimerEx("TVTdUpdate", 1000, false, "i", playerid); for(new i=0; i<GetMaxPlayers(); i++) { if(!PlayerOnline(i))continue; if(!IsAdmin(playerid,1))continue; format(str, sizeof(str), "[ADMIN] %s hat die Beobachtung gegen %s gestartet.",PlayerName(playerid),PlayerName(pid)); SendClientMessage(i, 0x0057AEFF, str); } return 1; }
Updaten also das TvTd[playerid][1] ( " " ) mit :
Code
Alles anzeigenforward TVTdUpdate(playerid); public TVTdUpdate(playerid) { if(!PlayerOnline(playerid) || gpv(playerid,"TV")!=1)return 1; new str[350], Float:fl[2], pid=gpv(playerid,"SpectateID"); GetPlayerHealth(pid, fl[0]); GetPlayerArmour(pid, fl[1]); format(str,sizeof(str),"~w~Name: %s Level: %d~n~Geschwindigkeit: %d km/h~n~Bargeld: %d$~n~Leben: %f~n~Armour: %f~n~Paketloss: %d%\nVBD: %d Minuten~n~FPS: %d\nPing: %d\nWanteds: %d", PlayerName(pid), pInfo[pid][level], GetPlayerSpeed(pid), GetPlayerMoney(pid), fl[0], fl[1], NetStats_PacketLossPercent(pid), (NetStats_GetConnectedTime(pid) / 1000) / 60, GetPlayerFPS(pid), GetPlayerPing(pid), GetPlayerWantedLevel(pid)); PlayerTextDrawSetString(playerid, TvTd[playerid][0], str); SetTimerEx("TVTdUpdate", 1000, false, "i", playerid); return 1; }
-
War mit Kollegen auf mein Server und habe /tv ausprobiert :
Als ich bei ihm auf TV war, alles cool aber wenn er es versucht bekommt er im Chat "Befehl wurde nicht gefunden", er war bei mir aber auch Spectate aber hat kein Textdraw angezeigt bekommen.
Crashdetect labert die Log voll :
Code
Alles anzeigen[21:07:46] [debug] Run time error 4: "Array index out of bounds" [21:07:46] [debug] Attempted to read/write array element at index 2 in array of size 2 [21:07:46] [debug] AMX backtrace: [21:07:46] [debug] #0 00073394 in public ocmd_tv (playerid=2, params[]=@016a05b0 "1") at C:\Users\Drai\Desktop\Server\gamemodes\gamemode.pwn:8705 [21:07:46] [debug] #1 native CallLocalFunction () from sampsvr [21:07:46] [debug] #2 00008260 in public OnPlayerCommandText (playerid=2, cmdtext[]=@016a0598 "/tv 1") at C:\Users\Drai\Desktop\Server\pawno\include\ocmd.inc:77 [21:07:59] [debug] Run time error 4: "Array index out of bounds" [21:07:59] [debug] Attempted to read/write array element at index 2 in array of size 2 [21:07:59] [debug] AMX backtrace: [21:07:59] [debug] #0 00072a7c in public ocmd_tv (playerid=2, params[]=@016a05a8 " ") at C:\Users\Drai\Desktop\Server\gamemodes\gamemode.pwn:8674 [21:07:59] [debug] #1 native CallLocalFunction () from sampsvr [21:07:59] [debug] #2 000082f8 in public OnPlayerCommandText (playerid=2, cmdtext[]=@016a0598 "/tv") at C:\Users\Drai\Desktop\Server\pawno\include\ocmd.inc:78 [21:08:19] [debug] Run time error 4: "Array index out of bounds" [21:08:19] [debug] Attempted to read/write array element at index 2 in array of size 2 [21:08:19] [debug] AMX backtrace: [21:08:19] [debug] #0 00073394 in public ocmd_tv (playerid=2, params[]=@016a05b0 "1") at C:\Users\Drai\Desktop\Server\gamemodes\gamemode.pwn:8705 [21:08:19] [debug] #1 native CallLocalFunction () from sampsvr [21:08:19] [debug] #2 00008260 in public OnPlayerCommandText (playerid=2, cmdtext[]=@016a0598 "/tv 1") at C:\Users\Safa\Desktop\Server\pawno\include\ocmd.inc:77 [21:08:25] [debug] Run time error 4: "Array index out of bounds" [21:08:25] [debug] Attempted to read/write array element at index 2 in array of size 2 [21:08:25] [debug] AMX backtrace: [21:08:25] [debug] #0 00072a7c in public ocmd_tv (playerid=2, params[]=@016a05a8 " ") at C:\Users\Drai\Desktop\Server\gamemodes\gamemode.pwn:8674 [21:08:25] [debug] #1 native CallLocalFunction () from sampsvr [21:08:25] [debug] #2 000082f8 in public OnPlayerCommandText (playerid=2, cmdtext[]=@016a0598 "/TV") at C:\Users\Drai\Desktop\Server\pawno\include\ocmd.inc:78
Zeile 8705 aus Gamemode ( erste Zeile ist 8705Code
Alles anzeigenTvTd[playerid][0] = CreatePlayerTextDraw(playerid, 419.000000, 361.974060, "usebox"); PlayerTextDrawLetterSize(playerid, TvTd[playerid][0], 0.000000, 9.362349); PlayerTextDrawTextSize(playerid,TvTd[playerid][0], 220.666656, 0.000000); PlayerTextDrawAlignment(playerid, TvTd[playerid][0], 1); PlayerTextDrawColor(playerid,TvTd[playerid][0], 0); PlayerTextDrawUseBox(playerid,TvTd[playerid][0], true); PlayerTextDrawBoxColor(playerid,TvTd[playerid][0], 102); PlayerTextDrawSetShadow(playerid,TvTd[playerid][0], 0); PlayerTextDrawSetOutline(playerid,TvTd[playerid][0], 0); PlayerTextDrawFont(playerid,TvTd[playerid][0], 3); PlayerTextDrawShow(playerid, TvTd[playerid][0]);
Zeile 8674 :Ich glaube ich fange an gleich zu weinen xD
@Jeffry need your help!
-
Als wäre einfach der Server offline, obwohl er online ist.
Connecting to 127.0.0.1:7777...
Connection failed, retrying..
Connecting bla bla bla. -
Hey,
mache ab und zu meine Textdraws auf meinem lokalem PC ( 127.0.0.1 ), gestern gings noch, heute kann ich nicht mehr connecten obwohl der Server läuft , immer :
Connnecting to 127.0.0.1
failed connecting,
retrying usw...Gestern ging es dennoch, kann einer helfen?
Firewall ist off sowie Antivirus.