nein, habe ich nicht. Sind alle die original Farben/ect.
SA-MP neu install bringt leider nichts.
nein, habe ich nicht. Sind alle die original Farben/ect.
SA-MP neu install bringt leider nichts.
Hallo, ich habe ein problem, wen ich ein flugzeug betrete, stürtzt samp ab. Dan kommt eine error Meldung die lautet so :
SA-MP 0.3d
Exception At Address: 0x007278ED
Registers:
EAX: 0x00C80488 EBX: 0x00000004 ECX: 0x0028FBC0 EDX: 0x4717B074
ESI: 0x46C62C00 EDI: 0x00000000 EBP: 0x00000080 ESP: 0x0028FB10
EFLAGS: 0x00010216
Stack:
+0000: 0x0E0E78EC 0x00000002 0x00000004 0x0000000A
+0010: 0x005856D3 0x0000000A 0x0028FC34 0x0028FBB4
+0020: 0x46C62C00 0x00000001 0x00000000 0x0000000C
+0030: 0x00000001 0x000003F3 0x3F7F1CCD 0xC3F8A042
+0040: 0x3B40C0C1 0x40128CD7 0x3F1D8507 0x3FF4E04E
+0050: 0xBFB02546 0xBFCFA62D 0xBF3511DD 0xBF9F6CCD
+0060: 0x3FA45EDB 0xC4D81C61 0x423C4098 0xC4DDFC32
+0070: 0x4218B0A0 0xC4CE2F4B 0xC41D7E74 0xC4755518
+0080: 0xC3FBC94C 0xC481F917 0xC3429751 0xC481F917
+0090: 0xC400A868 0xC4755518 0xC3FBC94C 0xC48A7773
+00A0: 0x43249362 0xC88B3285 0x4717B074 0xC889344B
+00B0: 0x471AB4AB 0xC3FD8D6A 0xC4755518 0xC3FBC94C
+00C0: 0xC475805A 0xC3FA0000 0xC47A0000 0xC3FA0000
+00D0: 0xC4BB8000 0xC3FA0000 0xC4D14228 0xC3FA0000
+00E0: 0xC47A0000 0x3F800000 0x3F5BFD0A 0x3F800000
+00F0: 0x3F800000 0xBF800000 0x3F800000 0xBF800000
+0100: 0xBF800000 0xBD99D3C0 0xBF800000 0xBF800000
+0110: 0xBF5334DE 0xBF800000 0xBF800000 0x3F800000
+0120: 0xBF800000 0x43860000 0x4447A040 0x43860000
+0130: 0x44449248 0x42A00000 0x44449248 0x42A00000
+0140: 0x44700000 0x4326F088 0x44700000 0x42A00000
+0150: 0x446C3357 0x42A00000 0x44700000 0x43860000
+0160: 0x44700000 0x46C62C00 0xC785C151 0x46C62C00
+0170: 0xC783AEB2 0x04061D39 0x0E0CD4D0 0xB2000000
+0180: 0x00000007 0x00000003 0x040F45E7 0x00000007
+0190: 0x00000003 0x00000002 0x0028FCBC 0x00000004
+01A0: 0x00000001 0xFEA00F3B 0x00000001 0x005869C4
+01B0: 0x00000000 0x00000004 0x00000007 0x00000003
+01C0: 0x00000007 0x00000002 0x00000007 0x00000004
+01D0: 0x00000006 0x00000003 0x00000006 0x00000002
+01E0: 0x00000006 0x0000001A 0x00000000 0x75456C30
+01F0: 0x00000000 0xC368B338 0x41705012 0x0000001A
+0200: 0x452CF4CC 0x00000001 0x0000001A 0x00000000
+0210: 0x0058A387 0x00000007 0x00000001 0x00000009
+0220: 0x0058A38F 0x00000000 0x00000018 0x00000000
+0230: 0x0000005D 0x00000000 0x00600F7D 0x006819EE
+0240: 0x0ABE2778 0x00540910 0x00000000 0x00000000
+0250: 0x0000001A 0x0058FC29 0x0058FC58 0x0053E504
+0260: 0x00000001 0x00000001 0x75456C30 0x0028FD90
+0270: 0x00000000 0x80002101 0x00B6F028 0x04103E51
SCM Op: 0x2BF, lDbg: 0
Game Version: US 1.0
State Information: Ped Context: 0
ich weiß nicht ob das bei euch auch so ist, könnt es ja ausprobieren wen ihr wolt. Die ID ist 89.202.1.70:4455 dan geht ihr zu den Piloten, dan müsste hinter euch zwei maschinen stehen, wen ihr in die einsteigt, kommt bei mir die Meldung. Das interisannte ist, das das nur in sf auf dem flugplatzt und bei den Maschinen so ist, sonst geht alles prima.
Hallo, ich brauch einen /f team chat, wo sich nur die z.b grove=grove unterhalten könnnen, und das gleiche bei den anderen.
Ich weiß nicht wie man das macht, ich hoffe jmd kann mir ihn schreiben. Ich hoffe die angaben sind das wo man braucht:
Steht bei "public OnPlayerRequestClass(playerid, classid)"
case 0,1,2,3,4,5,6: gTeam[playerid] = TEAM_COP;
case 7,8,9: gTeam[playerid] = TEAM_RUSSIA;
case 10,11,12: gTeam[playerid] = TEAM_TRIADEN;
case 13,14,15,16: gTeam[playerid] = TEAM_ITAL;
case 17,18,19: gTeam[playerid] = TEAM_BIKER;
case 20,21,22: gTeam[playerid] = TEAM_GROVE;
case 23,24,25: gTeam[playerid] = TEAM_BALLAS;
case 26,27,28: gTeam[playerid] = TEAM_AZTECAS;
case 29,30,31: gTeam[playerid] = TEAM_VAGOS;
case 32,33,34: gTeam[playerid] = TEAM_RIFA;
case 35,36,37: gTeam[playerid] = TEAM_ARMY;
default: gTeam[playerid] = TEAM_ZIVI;
Steht bei "public OnPlayerRequestClass(playerid, classid)"
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6){
SetPlayerColor(playerid,COLOR_DBLUE);
GameTextForPlayer(playerid, "~w~LS-Polizei", 1500, 6);}//-
else if(classid == 7 || classid == 8 || classid == 9){
SetPlayerColor(playerid,COLOR_RED);
GameTextForPlayer(playerid, "~w~Russische Mafia", 1500, 6);}
else if(classid == 10 || classid == 11 || classid == 12){
SetPlayerColor(playerid,COLOR_YELLOW);
GameTextForPlayer(playerid, "~w~Triaden", 1500, 6);}
else if(classid == 13 || classid == 14 || classid == 15 || classid == 16){
SetPlayerColor(playerid,COLOR_PINK);
GameTextForPlayer(playerid, "~w~Italenische Mafia", 1500, 6);}//-
else if(classid == 17 || classid == 18 || classid == 19){
SetPlayerColor(playerid,COLOR_ORANGE);
GameTextForPlayer(playerid, "~w~Biker", 1500, 6);}//-
else if(classid == 20 || classid == 21 || classid == 22){
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid, "~w~Grove Street", 1500, 6);}//-
else if(classid == 23 || classid == 24 || classid == 25){
SetPlayerColor(playerid,COLOR_PURPLE);
GameTextForPlayer(playerid, "~w~Ballas", 1500, 6);}//-
else if(classid == 26 || classid == 27 || classid == 28){
SetPlayerColor(playerid,COLOR_GREY);
GameTextForPlayer(playerid, "~w~Los Aztecas", 1500, 6);}
else if(classid == 29 || classid == 30 || classid == 31){
SetPlayerColor(playerid,COLOR_BLACK);
GameTextForPlayer(playerid, "~w~Vagos", 1500, 6);}
else if(classid == 32 || classid == 33 || classid == 34){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Rifa", 1500, 6);}
else if(classid == 35 || classid == 36 || classid ==37){
SetPlayerColor(playerid,COLOR_BROWN);
GameTextForPlayer(playerid, "~w~Army", 1500, 6);}
else if(classid == 38 || classid == 39 || classid == 40){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Zivilist", 1500, 6);}
return 1;
}
Steht bei new :
new RIFA;
new TRIADEN;
new GROVE;
new BIKER;
new BALLAS;
new RUSSIA;
new COP;
new ITAL;
new VAGOS;
new AZTECAS;
new ARMY;
new Fraktion[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
new Text:Forum;
new Spieler[MAX_PLAYERS][spieler_daten];
Steht bei PLayer Class´s 18
// Player Class's 18
AddPlayerClass(280,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(281,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(282,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(283,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(288,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(284,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(285,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(111,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(112,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(113,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(117,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(118,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(120,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(124,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(125,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(126,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(127,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(247,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(248,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(254,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(105,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(106,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(107,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(102,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(103,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(104,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(114,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(115,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(116,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(108,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(109,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(110,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(173,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(174,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(175,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(287,2731.5532,-2449.9136,17.5937,276.0934,16,10,24,100,31,750);//ARMY
AddPlayerClass(10,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(12,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(184,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
Ich glaube das sind die angaben was man braucht, wen nicht einfach melden was ihr braucht.
Es wäre schon wen jmd mir das erstellt, das ich das nur noch einfügen muss, ich sehe das besser wen ich es genau vor mir habe, so kann ich mir das erklären.
Danke im voraus
Hallo, ich brauch einen /f team chat, wo sich nur die z.b grove=grove unterhalten könnnen, und das gleiche bei den anderen.
Ich weiß nicht wie man das macht, ich hoffe jmd kann mir ihn schreiben. Ich hoffe die angaben sind das wo man braucht:
Steht bei "public OnPlayerRequestClass(playerid, classid)"
case 0,1,2,3,4,5,6: gTeam[playerid] = TEAM_COP;
case 7,8,9: gTeam[playerid] = TEAM_RUSSIA;
case 10,11,12: gTeam[playerid] = TEAM_TRIADEN;
case 13,14,15,16: gTeam[playerid] = TEAM_ITAL;
case 17,18,19: gTeam[playerid] = TEAM_BIKER;
case 20,21,22: gTeam[playerid] = TEAM_GROVE;
case 23,24,25: gTeam[playerid] = TEAM_BALLAS;
case 26,27,28: gTeam[playerid] = TEAM_AZTECAS;
case 29,30,31: gTeam[playerid] = TEAM_VAGOS;
case 32,33,34: gTeam[playerid] = TEAM_RIFA;
case 35,36,37: gTeam[playerid] = TEAM_ARMY;
default: gTeam[playerid] = TEAM_ZIVI;
Steht bei "public OnPlayerRequestClass(playerid, classid)"
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6){
SetPlayerColor(playerid,COLOR_DBLUE);
GameTextForPlayer(playerid, "~w~LS-Polizei", 1500, 6);}//-
else if(classid == 7 || classid == 8 || classid == 9){
SetPlayerColor(playerid,COLOR_RED);
GameTextForPlayer(playerid, "~w~Russische Mafia", 1500, 6);}
else if(classid == 10 || classid == 11 || classid == 12){
SetPlayerColor(playerid,COLOR_YELLOW);
GameTextForPlayer(playerid, "~w~Triaden", 1500, 6);}
else if(classid == 13 || classid == 14 || classid == 15 || classid == 16){
SetPlayerColor(playerid,COLOR_PINK);
GameTextForPlayer(playerid, "~w~Italenische Mafia", 1500, 6);}//-
else if(classid == 17 || classid == 18 || classid == 19){
SetPlayerColor(playerid,COLOR_ORANGE);
GameTextForPlayer(playerid, "~w~Biker", 1500, 6);}//-
else if(classid == 20 || classid == 21 || classid == 22){
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid, "~w~Grove Street", 1500, 6);}//-
else if(classid == 23 || classid == 24 || classid == 25){
SetPlayerColor(playerid,COLOR_PURPLE);
GameTextForPlayer(playerid, "~w~Ballas", 1500, 6);}//-
else if(classid == 26 || classid == 27 || classid == 28){
SetPlayerColor(playerid,COLOR_GREY);
GameTextForPlayer(playerid, "~w~Los Aztecas", 1500, 6);}
else if(classid == 29 || classid == 30 || classid == 31){
SetPlayerColor(playerid,COLOR_BLACK);
GameTextForPlayer(playerid, "~w~Vagos", 1500, 6);}
else if(classid == 32 || classid == 33 || classid == 34){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Rifa", 1500, 6);}
else if(classid == 35 || classid == 36 || classid ==37){
SetPlayerColor(playerid,COLOR_BROWN);
GameTextForPlayer(playerid, "~w~Army", 1500, 6);}
else if(classid == 38 || classid == 39 || classid == 40){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Zivilist", 1500, 6);}
return 1;
}
Steht bei new :
new RIFA;
new TRIADEN;
new GROVE;
new BIKER;
new BALLAS;
new RUSSIA;
new COP;
new ITAL;
new VAGOS;
new AZTECAS;
new ARMY;
new Fraktion[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
new Text:Forum;
new Spieler[MAX_PLAYERS][spieler_daten];
Steht bei PLayer Class´s 18
// Player Class's 18
AddPlayerClass(280,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(281,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(282,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(283,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(288,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(284,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(285,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(111,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(112,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(113,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(117,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(118,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(120,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(124,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(125,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(126,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(127,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(247,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(248,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(254,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(105,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(106,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(107,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(102,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(103,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(104,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(114,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(115,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(116,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(108,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(109,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(110,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(173,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(174,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(175,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(287,2731.5532,-2449.9136,17.5937,276.0934,16,10,24,100,31,750);//ARMY
AddPlayerClass(10,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(12,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(184,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
Ich hoffe das sind die angaben was man braucht, wen nicht einfach melden was ihr braucht.
Danke im voraus
ich vertseh das leider nicht. Mit diesen sonderbaren Wörter. Was ist das mit der Fraktions ID ?
new Fraktion[MAX_PLAYERS]; //das habe ich eingefügt
//OnPlayerConnect, Login, Sonstwo: (den satz habe ich bei "public OnPlayerConnect(playerid)" eingefügt (Fraktion[playerid]=4;)Fraktion[playerid]=4; wo finde ich ich Frations ID, und wie muss ich das dan einfügen?
// In dein Command zum Teamchat: was ist das ?
// Nachricht musst du natürlich noch formatieren (wie formatieren, bitte ärklär das genauer)
for(new i=0; i<MAX_PLAYERS; i++) wo muss ich das einfügen, eine neue public ?
{
if(IsPlayerConnected(i))
{
if(Fraktion[i] == Fraktion[playerid])
{
SendClientMessage(i, BLAU, msg);
}
}
}
Ich hoffe du hilfst mir
das versteh ich leider beides nicht, kann mir nicht jmd mit denen angaben, einen ferigen, zum einfügenden script schreiben?
ich lerne das eigentlich nur so, wen ich das vor mir hab und weiß was zu was gehört. Danke
Hallo, ich bin ja relativ neu in der sache. Ich brauch hilfe bei meinem Team chat für die frationen/gangs:
#define TEAM_COP 0
#define TEAM_RUSSIA 1
#define TEAM_TRIADEN 2
#define TEAM_ITAL 3
#define TEAM_BIKER 4
#define TEAM_GROVE 5
#define TEAM_BALLAS 6
#define TEAM_AZTECAS 7
#define TEAM_VAGOS 8
#define TEAM_RIFA 9
#define TEAM_ARMY 10
#define TEAM_ZIVI 11
// Player Class's 18
AddPlayerClass(280,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(281,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(282,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(283,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(288,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(284,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(285,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(111,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(112,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(113,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(117,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(118,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(120,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(124,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(125,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(126,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(127,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(247,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(248,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(254,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(105,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(106,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(107,2530.0439,-1668.2301,15.1693,85.4215,31,750,22,750,32,2000); //GROVE
AddPlayerClass(102,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(103,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(104,2070.6494,-1550.3933,13.4284,186.6098,31,700,22,750,33,100); //BALLAS
AddPlayerClass(114,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(115,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(116,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(108,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(109,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(110,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(173,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(174,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(175,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(287,2731.5532,-2449.9136,17.5937,276.0934,16,10,24,100,31,750);//ARMY
AddPlayerClass(10,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(12,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(184,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
ich weiß nicht genau was man dafür für angaben braucht.
Ich hoffe jmd kann mir eine vorlage oder das was ich einfügen muss heir posten.
Danke im voraus!
wie meinste das, nachmachen ? ich will dort noch éine Fraktion army einfügen.
Hallo, ich brauche für meinen Server eine neue Fraktion (ARMY) doch ich weiß nicht besonders wie das geht.
Im Internet habe ich leider auch nichts gefunden. Hier sind ein paar angaben:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,1326.1104,-877.1648,46.3461);
SetPlayerFacingAngle(playerid, 130.4790);
SetPlayerCameraPos(playerid,1323.0771,-880.0206,45.2266);
SetPlayerCameraLookAt(playerid,1326.1104,-877.1648,46.3461);
switch(classid)
{
case 0,1,2,3,4,5,6: gTeam[playerid] = TEAM_COP; // 1. bis 7. Skins
case 7,8,9: gTeam[playerid] = TEAM_RUSSIA; // 8. bis 10. Skins
case 10,11,12: gTeam[playerid] = TEAM_TRIADEN; // 11. bis 13. Skins
case 13,14,15,16: gTeam[playerid] = TEAM_ITAL; // 14. bis 17. Skins
case 17,18,19: gTeam[playerid] = TEAM_BIKER; // 18. bis 20. Skins
case 20,21,22: gTeam[playerid] = TEAM_GROVE; // 20. bis 22. Skins
case 23,24,25: gTeam[playerid] = TEAM_BALLAS; // 23. bis 25. Skins
case 26,27,28: gTeam[playerid] = TEAM_AZTECAS; // 26. bis 28. Skins
case 29,30,31: gTeam[playerid] = TEAM_VAGOS; // 29. bis 31. Skins
case 32,33,34: gTeam[playerid] = TEAM_RIFA; // 32. bis 34. Skins
default: gTeam[playerid] = TEAM_ZIVI; // alle restlichen Skins, die hier drüber nicht abgefragt wurden (zum Beispiel: 38. bis 40. Skin)
}
if(classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6){
SetPlayerColor(playerid,COLOR_DBLUE);
GameTextForPlayer(playerid, "~w~LS-Polizei", 1500, 6);}//-
else if(classid == 7 || classid == 8 || classid == 9){
SetPlayerColor(playerid,COLOR_RED);
GameTextForPlayer(playerid, "~w~Russische Mafia", 1500, 6);}
else if(classid == 10 || classid == 11 || classid == 12){
SetPlayerColor(playerid,COLOR_YELLOW);
GameTextForPlayer(playerid, "~w~Triaden", 1500, 6);}
else if(classid == 13 || classid == 14 || classid == 15 || classid == 16){
SetPlayerColor(playerid,COLOR_PINK);
GameTextForPlayer(playerid, "~w~Italenische Mafia", 1500, 6);}//-
else if(classid == 17 || classid == 18 || classid == 19){
SetPlayerColor(playerid,COLOR_ORANGE);
GameTextForPlayer(playerid, "~w~Biker", 1500, 6);}//-
else if(classid == 20 || classid == 21 || classid == 22){
SetPlayerColor(playerid,COLOR_GREEN);
GameTextForPlayer(playerid, "~w~Grove Street", 1500, 6);}//-
else if(classid == 23 || classid == 24 || classid == 25){
SetPlayerColor(playerid,COLOR_PURPLE);
GameTextForPlayer(playerid, "~w~Ballas", 1500, 6);}//-
else if(classid == 26 || classid == 27 || classid == 28){
SetPlayerColor(playerid,COLOR_GREY);
GameTextForPlayer(playerid, "~w~Los Aztecas", 1500, 6);}
else if(classid == 29 || classid == 30 || classid == 31){
SetPlayerColor(playerid,COLOR_BLACK);
GameTextForPlayer(playerid, "~w~Vagos", 1500, 6);}
else if(classid == 32 || classid == 33 || classid == 34){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Rifa", 1500, 6);}
else if(classid == 35 || classid == 36 || classid == 37){
SetPlayerColor(playerid,COLOR_BLUE);
GameTextForPlayer(playerid, "~w~Zivilist", 1500, 6);}
return 1;
}
// Player Class's 18
AddPlayerClass(280,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(281,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(282,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(283,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(288,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(284,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(285,1552.7234,-1694.6600,6.2188,175.7105,24,250,29,1500,25,150); //COP
AddPlayerClass(111,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(112,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(113,2132.1079,-2282.2371,20.6719,43.3022,22,500,30,2500,28,2000); //RUSSIA
AddPlayerClass(117,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(118,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(120,-2174.1616,632.4750,49.4375,356.1274,30,2500,23,500,8,1); //TRIADEN
AddPlayerClass(124,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(125,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(126,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(127,2610.9324,-2178.9529,-0.2188,96.2671,34,200,32,2000,31,3000); //ITAL
AddPlayerClass(247,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(248,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(254,1510.6865,-1480.3364,9.5000,311.8584,5,1,22,750,28,1500); //BIKER
AddPlayerClass(105,2530.0439,-1668.2301,15.1693,85.4215,5,1,22,750,32,2000); //GROVE
AddPlayerClass(106,2530.0439,-1668.2301,15.1693,85.4215,5,1,22,750,32,2000); //GROVE
AddPlayerClass(107,2530.0439,-1668.2301,15.1693,85.4215,5,1,22,750,32,2000); //GROVE
AddPlayerClass(102,2070.6494,-1550.3933,13.4284,186.6098,18,35,22,750,32,2000); //BALLAS
AddPlayerClass(103,2070.6494,-1550.3933,13.4284,186.6098,18,35,22,750,32,2000); //BALLAS
AddPlayerClass(104,2070.6494,-1550.3933,13.4284,186.6098,18,35,22,750,32,2000); //BALLAS
AddPlayerClass(114,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(115,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(116,1831.6841,-1681.8323,13.5466,92.3014,22,500,26,250,28,1500); //AZTECAS
AddPlayerClass(108,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(109,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(110,2794.8557,-1087.5179,30.7188,272.3829,28,500,22,250,4,1); //VAGOS
AddPlayerClass(173,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(174,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(175,-2476.9763,-197.9508,25.6237,272.3829,32,1250,26,250,22,750); //RIFA
AddPlayerClass(10,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(12,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
AddPlayerClass(184,1217.0851,-1813.7845,16.5938,272.3829,0,0,0,0,0,0); //ZIVI
public OnPlayerSpawn(playerid)
{
GangZoneShowForPlayer(playerid, RIFA, 0x00FFFF9B);
GangZoneShowForPlayer(playerid, TRIADEN, 0xFFFF009B);
GangZoneShowForPlayer(playerid, GROVE, 0x0080009B);
GangZoneShowForPlayer(playerid, BIKER, 0xFF8000A0);
GangZoneShowForPlayer(playerid, BALLAS, 0x8000FFAA);
GangZoneShowForPlayer(playerid, RUSSIA, 0xFF0000AA);
GangZoneShowForPlayer(playerid, COP, 0x0000FFA1);
GangZoneShowForPlayer(playerid, ITAL, 0xFF80FFA5);
GangZoneShowForPlayer(playerid, VAGOS, 0x0000009C);
GangZoneShowForPlayer(playerid, AZTECAS, 0x00000096);
return 1;
}
//Gang Zonen
RIFA = GangZoneCreate(-2510.563, -218.6009, -2402.408, -33.18756);
TRIADEN = GangZoneCreate(-2271.077, 574.337, -2124.295, 767.6402);
GROVE = GangZoneCreate(2398.743, -1745.026, 2531.842, -1614.75);
BIKER = GangZoneCreate(1474.654, -1488.423, 1603.95, -1425.259);
BALLAS = GangZoneCreate(2018.459, -1634.489, 2121.136, -1523.952);
RUSSIA = GangZoneCreate(2094.516, -2431.933, 2315.081, -2171.382);
COP = GangZoneCreate(1520.288, -1752.921, 1634.373, -1579.221);
ITAL = GangZoneCreate(2497.617, -2281.919, 2630.716, -2100.323);
VAGOS = GangZoneCreate(2740.998, -1176.551, 2839.872, -1018.641);
AZTECAS = GangZoneCreate(1790.289, -1772.66, 1950.008, -1595.012);
//Gang Zonen Ende
Ich hoffe jmd kann mir sagen, wie ich das jetzt dazufügen muss, das die Fraktion army dabei ist.
Danke im voraus
hab ich nicht verstanden, kann mir nicht einfach jmd das zeigen, wie das mit der ID gemeind ist? Manche haben keinen acc, Sie wehlen einfach ihren skin aus.
Und jetzt will ich halt noch einfügen das sich die Teams undereinander unterhalten können.
ist doch ein Gang-War kein Reallife. Die können ihre Gang/Fraktion immer am anfang ausuchen.
versteh ich jetzt nicht sry, der user darf such doch seine Gang/Fraktion selber ausuchen.
Es ist jetzt noch ein error :
Desktop\samp03\home\gamemodes\Gang-War.pwn(869) : error 017: undefined symbol "WUNSCHFRAKTIONSID"
Desktop\samp03\home\gamemodes\Gang-War.pwn(863) : warning 204: symbol is assigned a value that is never used: "accFormat"
Desktop\samp03\home\gamemodes\Gang-War.pwn(1006) : warning 225: unreachable code
Desktop\samp03\home\gamemodes\Gang-War.pwn(1319) : warning 235: public function lacks forward declaration (symbol "dcmd_team")
Desktop\samp03\home\gamemodes\Gang-War.pwn(1606) : warning 203: symbol is never used: "total_vehicles_from_files"
ist ja eigentlich das mit der ID.... aber ich versteh das nicht. Ich will das ja so haben das sich die z.b groven in ieren eigenen chat unterhalten können. Und das gleiche bei den anderen.
Kommen leider 2 Errors
Desktop\samp03\home\gamemodes\Gang-War.pwn(869) : error 017: undefined symbol "WUNSCHFRAKTIONSID"
Desktop\samp03\home\gamemodes\Gang-War.pwn(863) : warning 204: symbol is assigned a value that is never used: "accFormat"
Desktop\samp03\home\gamemodes\Gang-War.pwn(1006) : warning 225: unreachable code
Desktop\samp03\home\gamemodes\Gang-War.pwn(1322) : error 017: undefined symbol "sscanf"
Desktop\samp03\home\gamemodes\Gang-War.pwn(1356) : warning 203: symbol is never used: "total_vehicles_from_files"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Hallo, ich brauche für meinen Gang-War server einen Team chat, habe schon viel probiert aber immer kommen fehler.
Kann mir jmd vielleicht sagen wie ich das machen muss? ich habe folgende teams....
case 0,1,2,3,4,5,6: gTeam[playerid] = TEAM_COP;
case 7,8,9: gTeam[playerid] = TEAM_RUSSIA;
case 10,11,12: gTeam[playerid] = TEAM_TRIADEN;
case 13,14,15,16: gTeam[playerid] = TEAM_ITAL;
case 17,18,19: gTeam[playerid] = TEAM_BIKER;
case 20,21,22: gTeam[playerid] = TEAM_GROVE;
case 23,24,25: gTeam[playerid] = TEAM_BALLAS;
case 26,27,28: gTeam[playerid] = TEAM_AZTECAS;
case 29,30,31: gTeam[playerid] = TEAM_VAGOS;
case 32,33,34: gTeam[playerid] = TEAM_RIFA;
default: gTeam[playerid] = TEAM_ZIVI;
#define TEAM_COP 0
#define TEAM_RUSSIA 1
#define TEAM_TRIADEN 2
#define TEAM_ITAL 3
#define TEAM_BIKER 4
#define TEAM_GROVE 5
#define TEAM_BALLAS 6
#define TEAM_AZTECAS 7
#define TEAM_VAGOS 8
#define TEAM_RIFA 9
#define TEAM_ZIVI 10
new RIFA;
new TRIADEN;
new GROVE;
new BIKER;
new BALLAS;
new RUSSIA;
new COP;
new ITAL;
new VAGOS;
new AZTECAS;
ich weiß nicht genau welche angaben man daür braucht, ich hoffe das sind die...
Danke im vorraus!
Also bei mir hate ich ohne probleme den gleichen nehmen können.
Das hat doch mit dem nichts zutuen!
Ja, habe ich´.
Habe aber jetzt aber das ganze login system herausgenommen und ein besseres draufgemacht.
Könnt es ja auch mal anschauen: 80.246.63.153:4455
So funktioniert es ohne bug
Also wen ich das jetzt richtig sehe glaub ich, das du erstmal in der server.cfg bei gamemode0 GrandCityReallife (das .amx weglassen)
dan bei announce 0 auf announce 1 umstellen, sonst ist der server nicht in der suchliste!
so, dan zum
[screen is terminating]
das gleiche hate ich auch,
hast du den dateien in samp03 ordner die rechte 777 gegeben? wen ja dan ist gut.
wen du das schon hast und es kommt immer noch die Meldung, kannst du mal (apt-get install ia32-libs) eingeben und dan nochmal
probieren, am besten du startest in (wen du das nicht sowie so schon machst) erst (cd /home) dan (screen) und dan (./samp03svr)
So sollte es eigentlich gehen.
Stürtzt leider immer noch ab...
so sieht es jetzt bei mir aus:
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Willkommen zum Gangwar 2.0",5000,5);
SendClientMessage(playerid,COLOR_BLUE,"Herzlich Willkommen beim Gangwar 2011!");
SendClientMessage(playerid,COLOR_BLUE,"Wen Sie fragen haben geben Sie bitte /help ein");
SendClientMessage(playerid,COLOR_BLUE,"Wir Wünschen euch viel Spaß auf unseren Server eure Admins Comet und Marten");
TextDrawShowForPlayer(playerid, Forum);
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"/Accounts/%s.ini",pname);
if(fexist(accFormat))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login""Gebe dein Passwort ein","Einloggen","Abbrechen");
}
else
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Registrieren","Bitte Registriere dich (Achtung du kannst das Passwort nicht mehr ändern!","Registrieren","Abbrechen");
}
new string[100];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s ist dem Server Beigetreten!", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"/Accounts/%s.ini",pname);
if(response)
{
switch(dialogid)
{
case DIALOG_LOGIN:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login""Gebe dein Passwort ein","Einloggen","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Kein Passwort angegeben!");
}
if(strcmp(inputtext,dini_Get(accFormat,"Passwort")) == 0)
{
GivePlayerMoney(playerid,dini_Int(accFormat,"Geld"));
SetPlayerScore(playerid,dini_Int(accFormat,"Score"));
Spieler[playerid][eingeloggt] = 1;
SendClientMessage(playerid,0xFFFFFFFF,"du wurdest eingeloggt!.");
}
else
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login""Gebe dein Passwort ein","Einloggen","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Das Passwort war Falsch!");
}
}
case DIALOG_REG:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Registrieren","Bitte Registriere dich","Registrieren","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Das Passwort ist zu kurz!");
}
dini_Create(accFormat);
dini_Set(accFormat,"Passwort",inputtext);
Spieler[playerid][eingeloggt] = 1;
SendClientMessage(playerid,0xFFFFFFFF,"Account wurde angelegt und du wurdest eingelogt.");
}
}
}
else
{
switch(dialogid)
{
case DIALOG_LOGIN:ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Gebe dein Passwort ein","Einloggen","Abbrechen");
case DIALOG_REG:ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Registrieren","Bitte Registriere dich (Achtung! du kannst das Passwort nich mehr ändern!)","Registrieren","Abbrechen");
}
}
return 1;
}
Es kommen auch 4 Warnungen:
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 203: symbol is never used: "total_vehicles_from_files"
ich hoffe ier könnt mir helfen, es ist ja echt blöd wen einer das pw falsch eingiebt und alle fliegen raus.
geht leider nicht, er stürtzt immer noch bei falscher pw eingabe ab. So sieht es momentan aus :
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Willkommen zum Gangwar 2.0",5000,5);
SendClientMessage(playerid,COLOR_BLUE,"Herzlich Willkommen beim Gangwar 2011!");
SendClientMessage(playerid,COLOR_BLUE,"Wen Sie fragen haben geben Sie bitte /help ein");
SendClientMessage(playerid,COLOR_BLUE,"Wir Wünschen euch viel Spaß auf unseren Server eure Admins Comet und Marten");
TextDrawShowForPlayer(playerid, Forum);
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"/Accounts/%s.ini",pname);
if(fexist(accFormat))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT ,"Login","Bitte gebe dein Passwort ein!","Einloggen","Abbrechen");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT ,"Registrieren","Bitte Registriere dich (Achtung du kannst das Passwort nicht mehr ändern!","Registrieren","Abbrechen");
}
new string[100];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s ist dem Server Beigetreten!", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"/Accounts/%s.ini",pname);
if(response)
{
switch(dialogid)
{
case DIALOG_LOGIN:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Gebe dein Passwort ein","Einloggen","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Kein Passwort angegeben!");
}
if(strcmp(inputtext,dini_Get(accFormat,"Passwort")) == 0)
{
GivePlayerMoney(playerid,dini_Int(accFormat,"Geld"));
SetPlayerScore(playerid,dini_Int(accFormat,"Score"));
Spieler[playerid][eingeloggt] = 1;
SendClientMessage(playerid,0xFFFFFFFF,"du wurdest eingeloggt!.");
}
else
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT ,"Gebe dein Passwort ein","Einloggen","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Das Passwort war Falsch!");
}
}
case DIALOG_REG:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT ,"Registrieren","Bitte Registriere dich","Registrieren","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Das Passwort ist zu kurz!");
}
dini_Create(accFormat);
dini_Set(accFormat,"Passwort",inputtext);
Spieler[playerid][eingeloggt] = 1;
SendClientMessage(playerid,0xFFFFFFFF,"Account wurde angelegt und du wurdest eingelogt.");
}
}
}
else
{
switch(dialogid)
{
case DIALOG_LOGIN:ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT ,"Login","Gebe dein Passwort ein","Einloggen","Abbrechen");
case DIALOG_REG:ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT ,"Registrieren","Bitte Registriere dich (Achtung! du kannst das Passwort nich mehr ändern!)","Registrieren","Abbrechen");
}
}
return 1;
}
Hallo,
Ich habe ein problem, in meinen server (root server) im login system gibt es ein problem. Am anfang müssen Sie sich registrieren und ein pw eingeben.Doch die meisten vergessen das, und geben das beim nächsten login falsch ein, und dan stürtzt der ganze server ab und im Terminal von Putty steht ( Segmentation fault) alle fliegen dan raus, dan starte ich den server neu (./samp03svr) und manche geben es dan wieder falsch ein.
Dan haben es die leute satt und gehen. Ich weiß nicht woran das liegt
Ich hoffe jmd kann mir helfen.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"%s.ini",pname);
if(response)
{
switch(dialogid)
{
case DIALOG_LOGIN:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Gebe dein Passwort ein","Einloggen","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Kein Passwort angegeben!");
}
if(strcmp(inputtext,dini_Get(accFormat,"Passwort")) == 0)
{
GivePlayerMoney(playerid,dini_Int(accFormat,"Geld"));
SetPlayerScore(playerid,dini_Int(accFormat,"Score"));
Spieler[playerid][eingeloggt] = 1;
SendClientMessage(playerid,0xFFFFFFFF,"du wurdest eingeloggt!.");
}
else
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Gebe dein Passwort ein","Einloggen","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Das Passwort war Falsch!");
}
}
case DIALOG_REG:
{
if(!strlen(inputtext))
{
ShowPlayerDialog(playerid,DIALOG_REG,1,"Registrieren","Bitte Registriere dich","Registrieren","Abbrechen");
return SendClientMessage(playerid,0xFFFFFFFF,"Das Passwort ist zu kurz!");
}
dini_Create(accFormat);
dini_Set(accFormat,"Passwort",inputtext);
Spieler[playerid][eingeloggt] = 1;
SendClientMessage(playerid,0xFFFFFFFF,"Account wurde angelegt und du wurdest eingelogt.");
}
}
}
else
{
switch(dialogid)
{
case DIALOG_LOGINhowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Gebe dein Passwort ein","Einloggen","Abbrechen");
case DIALOG_REGhowPlayerDialog(playerid,DIALOG_REG,1,"Registrieren","Bitte Registriere dich (Achtung! du kannst das Passwort nich mehr ändern!)","Registrieren","Abbrechen");
}
}
return 1;
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~Willkommen zum Gangwar 2.0",5000,5);
SendClientMessage(playerid,COLOR_BLUE,"Herzlich Willkommen beim Gangwar 2011!");
SendClientMessage(playerid,COLOR_BLUE,"Wen Sie fragen haben geben Sie bitte /help ein");
SendClientMessage(playerid,COLOR_BLUE,"Wir Wünschen euch viel Spaß auf unseren Server eure Admins Comet und Marten");
TextDrawShowForPlayer(playerid, Forum);
new pname[MAX_PLAYERS],accFormat[128];
GetPlayerName(playerid,pname,sizeof pname);
format(accFormat,sizeof accFormat,"%s.ini",pname);
if(fexist(accFormat))
{
ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Bitte gebe dein Passwort ein!","Einloggen","Abbrechen");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REG,1,"Registrieren","Bitte Registriere dich (Achtung du kannst das Passwort nicht mehr ändern!","Registrieren","Abbrechen");
}
new string[100];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s ist dem Server Beigetreten!", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
Danke im vorraus!