Wenn man nichts schreibt also nur /Report kommt das mit [Report] meldet folgendes
und der Name wird nie angezeigt also von pID
Beiträge von The Sensei
-
-
Und jetzt nochmal seine Funktion ansehen und feststellen dass bei isPlayerAnAdmin ein Parameter fehlt...
Was fehlt denn???Hab bei dieser Zeile if(isPlayerAnAdmin(i)) 1 warning:
[code]C:\Users\Patrick\Desktop\Server\GER\GER\GER\gamemodes\IRP-City.pwn(1337) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase1 Warning.
-
Klar Moment :
stock isPlayerAnAdmin(playerid,rank)return (GetPVarInt(playerid,"Adminlevel")>=rank) ? 1 : 0; -
Aber es kann nicht nur der Admin Rank 1ser Sehen?
Also ist nur eine Sicherheits frage. -
Wie mache ich das?
-
Ok ansich eine Coole Idee.
und der Score wird auch gespeichert und die ränge kann man die Selber entscheiden? -
Wofür wird der Score benutzt?
und kannst du ein Screenshot vom Shop machen? -
Hallo ich habe mal ein Report System Gescriptet.
ich weis es ist nicht viel und es soll auch nicht viel sein einfach das nötigste.
Den Chat schreibe ich anders.würde es den Funktionieren das Admins die Nachricht kriegen was der andere geschrieben hat?
ocmd:report(playerid,params[])
{
if(!params[0]) return SendClientMessage(playerid,-1,"Vewendung: /report [Text]");
if(!GetPVarInt(playerid,"Adminlevel",1)) return SendClientMessage(playerid,-1,"");
new pID,string[144];
format(string,144,"[Report] %s meldet folgendes %s",pID,params);
SendClientMessage(playerid,ROT,string);
return 1;
} -
Yo Funktioniert das return 1;
hat gefehlt
Sorry leute aber danke -
Guten Tag,
ich habe angeblich einen Klammerfehler in meinem MDC System aber ich habe keinen Gefunden.
Wenn ich das System rausmache Funktioniert alles wenn es drinne ist 26 Errors.ocmd:mdc(playerid,params[])
{
if(!isPlayerInFrakt(playerid,1))return SendClientMessage(playerid,ROT,"Du bist kein Beamter!");
new pID,string[144];
if(sscanf(params,"uis[64]",pID))return SendClientMessage(playerid,GELB,"Vewendung: /mdc [ID]");
format(string,144,"[HQ] Die Datenabfrage vom Verdächtigen %s ergab folgendes.",Name(pID));
format(string,144,"Name %s\n\nLevel: %s\n\nVerbrechen:\n\nLetztes Verbechen:",Name(pID),GetPlayerScore(pID));
SendClientMessage(i,-1,string);
return
} -
Wenn ich ihn einfüge krieg ich 21 Errors wegen playerid.
-
Ich möchte diesen Code converten zu einem Pawn code.
Dieser Code ist vom Map-Constructor
Bitte helft mir.CodeRemoveBuildingForPlayer(playerid, 6068, 1247.9141, -1429.9688, 15.1250, 0.25);RemoveBuildingForPlayer(playerid, 1231, 1216.7031, -1488.3906, 15.2344, 0.25);RemoveBuildingForPlayer(playerid, 627, 1209.8984, -1482.3828, 14.1406, 0.25);RemoveBuildingForPlayer(playerid, 627, 1230.1250, -1482.3828, 14.1406, 0.25);RemoveBuildingForPlayer(playerid, 792, 1238.9844, -1481.9531, 12.7188, 0.25);RemoveBuildingForPlayer(playerid, 620, 1249.9844, -1481.4609, 9.6250, 0.25);RemoveBuildingForPlayer(playerid, 1231, 1247.1953, -1483.4531, 15.2344, 0.25);RemoveBuildingForPlayer(playerid, 620, 1258.1797, -1478.0000, 9.6250, 0.25);RemoveBuildingForPlayer(playerid, 792, 1238.9844, -1468.0156, 12.7188, 0.25);RemoveBuildingForPlayer(playerid, 620, 1250.6563, -1466.0000, 9.6250, 0.25);RemoveBuildingForPlayer(playerid, 620, 1260.1797, -1454.1016, 9.6250, 0.25);RemoveBuildingForPlayer(playerid, 1231, 1247.1953, -1451.8047, 15.2344, 0.25);RemoveBuildingForPlayer(playerid, 792, 1256.9844, -1443.0313, 12.7188, 0.25);RemoveBuildingForPlayer(playerid, 792, 1236.2813, -1443.0313, 12.7188, 0.25);RemoveBuildingForPlayer(playerid, 6052, 1247.9141, -1429.9688, 15.1250, 0.25);RemoveBuildingForPlayer(playerid, 627, 1230.1250, -1416.5703, 14.1406, 0.25);RemoveBuildingForPlayer(playerid, 627, 1209.8984, -1416.5703, 14.1406, 0.25);RemoveBuildingForPlayer(playerid, 792, 1256.9844, -1417.7031, 12.7188, 0.25);RemoveBuildingForPlayer(playerid, 792, 1236.2813, -1417.7031, 12.7188, 0.25);RemoveBuildingForPlayer(playerid, 1283, 1244.0391, -1406.5313, 15.1641, 0.25);RemoveBuildingForPlayer(playerid, 14852, 246.3516, 106.6328, 1007.6875, 0.25);CreateObject(987, 1249.62866, -1489.55884, 12.15544, 0.00000, 0.00000, 0.00000);CreateObject(987, 1261.32056, -1489.67578, 12.15540, 0.00000, 0.00000, 90.00000);CreateObject(987, 1261.32336, -1477.71667, 12.15540, 0.00000, 0.00000, 90.00000);CreateObject(987, 1261.36218, -1465.76257, 12.15540, 0.00000, 0.00000, 90.00000);CreateObject(987, 1261.37036, -1453.82471, 12.15540, 0.00000, 0.00000, 90.00000);CreateObject(987, 1261.48657, -1442.10498, 12.15540, 0.00000, 0.00000, 180.00000);CreateObject(987, 1250.24390, -1442.10498, 12.15540, 0.00000, 0.00000, 180.00000);CreateObject(987, 1237.69312, -1489.55957, 12.15544, 0.00000, 0.00000, 0.00000);CreateObject(987, 1225.75732, -1489.57031, 12.15544, 0.00000, 0.00000, 0.00000);CreateObject(987, 1213.77881, -1489.55151, 12.15544, 0.00000, 0.00000, 0.00000);CreateObject(987, 1206.26184, -1489.55164, 12.15544, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1210.34155, -1482.89917, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1213.55225, -1482.89917, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1216.76367, -1482.89917, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1219.97461, -1482.89917, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1223.18359, -1482.89917, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1226.39368, -1482.89929, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1229.60364, -1482.89917, 14.12000, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1210.34155, -1482.89917, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1213.55225, -1482.89917, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1216.76367, -1482.89917, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1219.97461, -1482.89917, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1223.18359, -1482.89917, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1226.39368, -1482.89929, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1229.60364, -1482.89917, 17.61960, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1212.98120, -1481.20862, 14.12000, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1477.99841, 14.12000, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1474.78979, 14.12000, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1471.57837, 14.12000, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1481.20862, 17.61960, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1477.99841, 17.61960, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1474.78979, 17.61960, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1212.98120, -1471.57837, 17.61960, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1478.91309, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(1491, 1233.66052, -1477.32654, 12.54050, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1233.62610, -1478.91309, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1475.70276, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1474.21155, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1471.00195, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1472.49207, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1469.28125, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(6959, 1240.04578, -1463.16455, 12.59530, 0.00000, -0.16000, 0.00000);CreateObject(1361, 1247.56311, -1483.82422, 13.09750, 0.00000, 0.00000, 0.00000);CreateObject(1360, 1249.50391, -1483.82422, 13.09750, 0.00000, 0.00000, 90.00000);CreateObject(1360, 1252.22314, -1483.82422, 13.09750, 0.00000, 0.00000, 90.00000);CreateObject(1360, 1254.94299, -1483.82422, 13.09750, 0.00000, 0.00000, 90.00000);CreateObject(1360, 1257.74390, -1483.82422, 13.09750, 0.00000, 0.00000, 90.00000);CreateObject(1361, 1259.89929, -1483.82422, 13.09750, 0.00000, 0.00000, 0.00000);CreateObject(3437, 1206.26306, -1489.42310, 17.82902, 0.00000, 0.00000, 0.00000);CreateObject(3437, 1206.26306, -1482.67151, 17.82900, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1210.81482, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1218.72778, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1226.25293, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1232.77356, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1240.17468, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1247.13574, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(1231, 1253.87830, -1489.08435, 15.23830, 0.00000, 0.00000, 0.00000);CreateObject(19458, 1231.81543, -1477.99731, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1228.31604, -1477.99731, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1224.81726, -1477.99731, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1221.32629, -1477.99731, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1217.82776, -1477.99683, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1214.65076, -1477.99731, 12.47310, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1231.81543, -1468.36450, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1228.31604, -1468.36450, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1224.81726, -1468.36450, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1221.32629, -1468.36450, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1217.82776, -1468.36450, 12.47510, 0.00000, 90.00000, 0.00000);CreateObject(19458, 1214.65076, -1468.36450, 12.47310, 0.00000, 90.00000, 0.00000);CreateObject(19367, 1233.62610, -1464.96252, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1461.75183, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1458.54077, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1455.32947, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62598, -1452.11914, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1464.96252, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1461.75183, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1458.54077, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1455.32947, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62598, -1452.11914, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1231.93201, -1474.85046, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1228.72083, -1474.85046, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1225.51001, -1474.85071, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(1491, 1222.39221, -1474.85071, 12.54050, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1222.31848, -1473.30933, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1222.31848, -1470.09961, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(1491, 1222.24719, -1474.83313, 12.54050, 0.00000, 0.00000, 180.00000);CreateObject(19367, 1219.13245, -1474.85071, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1215.92175, -1474.85071, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1214.50635, -1474.84875, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1228.72083, -1478.07605, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1230.23804, -1479.76770, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1230.23901, -1481.37231, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(1491, 1225.60437, -1478.08777, 12.54050, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1225.52722, -1479.59290, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1225.52954, -1481.37170, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1223.83362, -1478.07605, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1220.62305, -1478.07605, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1217.41248, -1478.07605, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(1491, 1214.57898, -1478.06445, 12.54050, 0.00000, 0.00000, 180.00000);CreateObject(19367, 1216.17114, -1478.07800, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(2990, 1225.01563, -1416.17871, 14.65680, 0.00000, 0.00000, 180.00000);CreateObject(2990, 1214.91541, -1416.17871, 14.65681, 0.00000, 0.00000, 180.00000);CreateObject(16782, 1215.57190, -1470.09570, 13.85690, 0.00000, 0.00000, 270.00000);CreateObject(16662, 1216.07263, -1464.58582, 12.99145, 0.00000, 0.00000, 333.86798);CreateObject(2182, 1232.07983, -1478.23511, 12.56230, 0.00000, 0.00000, 270.00000);CreateObject(1808, 1219.11499, -1474.56042, 12.56190, 0.00000, 0.00000, 180.00000);CreateObject(2190, 1232.11536, -1477.79712, 13.36216, 0.00000, 0.00000, 0.00000);CreateObject(1806, 1232.20203, -1479.17285, 12.56176, 0.00000, 0.00000, 0.00000);CreateObject(1998, 1221.78052, -1470.91895, 12.56190, 0.00000, 0.00000, 180.00000);CreateObject(1806, 1220.90173, -1470.81482, 12.56170, 0.00000, 0.00000, 180.00000);CreateObject(2164, 1220.15186, -1470.04712, 12.56266, 0.00000, 0.00000, 0.00000);CreateObject(2161, 1218.79907, -1470.02893, 12.56266, 0.00000, 0.00000, 0.00000);CreateObject(2164, 1230.35474, -1479.43994, 12.56250, 0.00000, 0.00000, 90.00000);CreateObject(2161, 1230.31519, -1480.78564, 12.56190, 0.00000, 0.00000, 90.00000);CreateObject(1613, 1233.73206, -1476.60864, 17.33852, 0.00000, 0.00000, 180.00000);CreateObject(1997, 1223.49060, -1471.06470, 12.56029, 0.00000, 0.00000, 0.00000);CreateObject(1997, 1225.45984, -1471.06470, 12.56030, 0.00000, 0.00000, 0.00000);CreateObject(1997, 1227.49377, -1471.06470, 12.56030, 0.00000, 0.00000, 0.00000);CreateObject(1997, 1229.81287, -1471.09607, 12.56030, 0.00000, 0.00000, 0.00000);CreateObject(1997, 1232.07312, -1471.06470, 12.56030, 0.00000, 0.00000, 0.00000);CreateObject(2172, 1223.97144, -1481.10718, 12.55934, 0.00000, 0.00000, 0.00000);CreateObject(2172, 1221.26672, -1481.15759, 12.55934, 0.00000, 0.00000, 0.00000);CreateObject(2172, 1218.46411, -1481.14380, 12.55934, 0.00000, 0.00000, 0.00000);CreateObject(2172, 1215.60254, -1481.16248, 12.55934, 0.00000, 0.00000, 0.00000);CreateObject(2193, 1213.49097, -1482.17297, 12.56052, 0.00000, 0.00000, 0.00000);CreateObject(1806, 1224.41821, -1481.98511, 12.56012, 0.00000, 0.00000, 340.41779);CreateObject(1806, 1221.65076, -1482.04578, 12.56012, 0.00000, 0.00000, 353.55975);CreateObject(1806, 1218.87769, -1481.99194, 12.56012, 0.00000, 0.00000, 10.64046);CreateObject(1806, 1216.03125, -1481.99890, 12.56012, 0.00000, 0.00000, 358.43298);CreateObject(1806, 1214.13818, -1482.07556, 12.56012, 0.00000, 0.00000, 29.83513);CreateObject(2172, 1225.00171, -1479.44141, 12.55930, 0.00000, 0.00000, 180.00000);CreateObject(2172, 1222.27954, -1479.44141, 12.55930, 0.00000, 0.00000, 180.00000);CreateObject(2172, 1219.47961, -1479.44141, 12.55930, 0.00000, 0.00000, 180.00000);CreateObject(2172, 1216.63000, -1479.44141, 12.55930, 0.00000, 0.00000, 180.00000);CreateObject(1806, 1224.75610, -1478.56177, 12.56012, 0.00000, 0.00000, 177.18005);CreateObject(1806, 1221.93115, -1478.57056, 12.56012, 0.00000, 0.00000, 191.36037);CreateObject(1806, 1219.08533, -1478.58154, 12.56012, 0.00000, 0.00000, 183.90222);CreateObject(1806, 1216.15894, -1478.53357, 12.56012, 0.00000, 0.00000, 168.16682);CreateObject(14782, 1226.58203, -1482.48450, 13.58393, 0.00000, 0.00000, 180.00000);CreateObject(366, 1230.11963, -1481.57275, 13.29983, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1480.99329, 13.29980, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1480.31323, 13.29980, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1479.55310, 13.29980, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1480.15259, 14.01090, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1480.91174, 14.01090, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1481.59204, 14.01090, 0.00000, 0.00000, 90.00000);CreateObject(366, 1230.11963, -1482.16992, 14.01090, 0.00000, 0.00000, 90.00000);CreateObject(2202, 1226.10974, -1480.57202, 12.56260, 0.00000, 0.00000, 90.26170);CreateObject(932, 1232.58691, -1474.30530, 12.56077, 0.00000, 0.00000, 242.27628);CreateObject(954, 1233.74536, -1476.55688, 15.41340, 0.00000, 0.00000, 90.00000);CreateObject(1235, 1232.93164, -1480.12610, 13.06920, 0.00000, 0.00000, 0.00000);CreateObject(2252, 1232.92737, -1478.00171, 13.65560, 0.00000, 0.00000, 0.00000);CreateObject(1278, 1248.10925, -1443.47351, 12.57126, 0.00000, 0.00000, 0.00000);CreateObject(1278, 1260.62817, -1455.39429, 12.57130, 0.00000, 0.00000, 270.00000);CreateObject(1278, 1260.62817, -1475.84778, 12.57130, 0.00000, 0.00000, 270.00000);CreateObject(19367, 1233.62610, -1444.45959, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1444.45959, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1441.25134, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1438.04163, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.60645, -1434.83435, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1431.62134, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1441.25134, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1438.04163, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1434.83081, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62415, -1431.62134, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1419.95691, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1423.16785, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62415, -1424.97424, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.55847, -1429.68652, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1419.95691, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1423.16785, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1426.37805, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1233.62610, -1429.58789, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1426.37805, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1423.16785, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1419.95691, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1429.58789, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1429.58789, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1426.37805, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1423.16785, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1206.17932, -1419.95691, 16.78480, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1208.24658, -1416.18262, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1231.67712, -1416.18262, 13.28900, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1231.67712, -1416.18262, 16.78480, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1208.24658, -1416.18262, 16.78480, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1231.93201, -1474.85046, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1228.72083, -1474.85046, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1225.51001, -1474.85071, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1222.31848, -1470.09961, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1222.31848, -1473.30933, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1219.13245, -1474.85071, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1215.92175, -1474.85071, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1214.50635, -1474.84875, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1216.17114, -1478.07800, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1217.41248, -1478.07605, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1220.62305, -1478.07605, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1223.83362, -1478.07605, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1225.52722, -1479.59290, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1225.52954, -1481.37170, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1228.72083, -1478.07605, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1230.23804, -1479.76770, 13.28900, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1230.23804, -1479.76770, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1230.23901, -1481.37231, 16.78780, 0.00000, 0.00000, 0.00000);CreateObject(19367, 1222.31970, -1474.85071, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1214.50659, -1478.09802, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(19367, 1227.00183, -1478.07800, 16.78780, 0.00000, 0.00000, 90.00000);CreateObject(970, 1249.40723, -1484.43579, 13.08020, 0.00000, 0.00000, 0.00000);CreateObject(970, 1253.58374, -1484.43579, 13.08020, 0.00000, 0.00000, 0.00000);CreateObject(970, 1257.76013, -1484.43579, 13.08020, 0.00000, 0.00000, 0.00000);CreateObject(970, 1249.40723, -1483.16003, 13.08020, 0.00000, 0.00000, 0.00000);CreateObject(970, 1253.58374, -1483.16003, 13.08020, 0.00000, 0.00000, 0.00000);CreateObject(970, 1257.76013, -1483.16003, 13.08020, 0.00000, 0.00000, 0.00000);CreateObject(19273, 1230.28943, -1416.13635, 13.88530, 0.00000, 0.00000, 180.00000);CreateObject(3850, 1238.33618, -1440.19971, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(3850, 1238.33618, -1436.73840, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(3850, 1238.33618, -1433.27625, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(3850, 1238.33618, -1429.81384, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(1491, 1233.62695, -1428.09167, 12.53000, 0.00000, 0.00000, 90.00000);CreateObject(3850, 1238.33618, -1424.85254, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(3850, 1238.33618, -1421.39075, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(3850, 1238.33618, -1417.92957, 13.09860, 0.00000, 0.00000, 0.00000);CreateObject(19425, 1235.97791, -1424.85254, 12.49780, 0.00000, 0.00000, 0.00000);CreateObject(3852, 1235.97791, -1427.27441, 11.16550, 0.00000, 0.00000, 0.00000);CreateObject(19425, 1235.97791, -1421.39075, 12.48780, 0.00000, -2.04000, 0.00000);CreateObject(19425, 1235.97791, -1417.92957, 12.48780, 0.00000, -2.04000, 0.00000);CreateObject(19425, 1235.97791, -1429.81384, 12.49780, 0.00000, 0.00000, 0.00000);CreateObject(19425, 1235.97791, -1433.27625, 12.54780, 0.00000, 0.00000, 0.00000);CreateObject(19425, 1235.97791, -1436.73840, 12.58980, 0.00000, 0.00000, 0.00000);CreateObject(19425, 1235.97791, -1440.19971, 12.59980, 0.00000, 0.00000, 0.00000);CreateObject(8406, 1252.44043, -1415.83472, 17.59180, 0.00000, 0.00000, 180.00000);CreateObject(3578, 1238.80261, -1433.26563, 12.51033, 0.00000, 0.00000, 90.00000);CreateObject(3578, 1238.80017, -1435.21399, 12.50830, 0.00000, 0.00000, 90.00000);CreateObject(3578, 1238.80188, -1421.42310, 12.51030, 0.00000, 0.00000, 90.00000);CreateObject(3578, 1259.38062, -1431.50562, 12.51033, 0.00000, 0.00000, 90.00000);CreateVehicle(416, 1235.6871, -1407.5297, 13.1383, 180.0000, -1, -1, 100);
-
Habe einen Klammerfehler aber wo?
ocmd:stats(playerid,params[])
{
new string[300],name[MAX_PLAYER_NAME];GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(string,300,"\n[Stats]\nName: %s\nLevel: %d\nFraktion: %d\nRank: %d\nStrafpunkte: %d\nKills/Tode: %d/%d\nWarns: %d");
name,GetPlayerScore(playerid),GetPVarInt(playerid,"Fraktion"),GetPVarInt(playerid,"Rank"),GetPVarInt(playerid,"Punkte"),GetPVarInt(playerid,"Kills"),GetPVarInt(playerid,"Tode"),GetPVarInt(playerid,"Warns"));
SendClientMessage(playerid,-1,string);
return 1;
}
ocmd:punkte(playerid,params[])
{
if(!isPlayerInFrakt(playerid,2))return SendClientMessage(playerid,ROT,"Du bist nicht beim Ordnungsamt.");
new pID, reason[128],string[128],name[MAX_PLAYER_NAME],punkte;
if(sscanf(params,"usi",pID,reason,punkte))return SendClientMessage(playerid,GELB,"/punkte [ID] [Grund] [Anzahl]");
format(string,128,"Ordnungsbeamter %s hat dir %i Strafpunkte eingetragen. Grund: %s",SpielerName(playerid),punkte,reason);
SendClientMessage(pID,BLUTROT,string);
format(string,128,"Du hast %s %i Strafpunkte eingetragen. Grund: %s",SpielerName(pID),punkte,reason);
SendClientMessage(playerid,BABYBLAU,string);
GetPlayerName(playerid,name,MAX_PLAYER_NAME),format(string,128,"(( HQ: %s hat %s %i Strafpunkte eingetragen. Grund: %s ))",SpielerName(playerid),SpielerName(pID),punkte,reason);
for(new i; i<MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i) || GetPVarInt(i,"Fraktion") != GetPVarInt(playerid,"Fraktion")) continue;
SendClientMessage(i,BLAU,string);
SetPVarInt(pID, "Punkte", GetPVarInt(pID, "Punkte")+punkte);
SpielerSpeichern(pID);
}
return 1;
}
ocmd:clearpunkte(playerid,params[])
{
if(!isPlayerInFrakt(playerid,2))return SendClientMessage(playerid,ROT,"Du bist nicht beim Ordnungsamt.");
if(!isPlayerRank(playerid,5))return SendClientMessage(playerid,ROT,"Du bist nicht Rank 5.");
new pID, reason[128],string[128],name[MAX_PLAYER_NAME],punkte;
if(sscanf(params,"usi",pID,reason,punkte))return SendClientMessage(playerid,GELB,"/clearpunkte [ID] [Grund] [Anzahl]");
format(string,128,"Ordnungsbeamter %s hat dir %i Strafpunkte gelöscht. Grund: %s",SpielerName(playerid),punkte,reason);
SendClientMessage(pID,BLUTROT,string);
format(string,128,"Du hast %s %i Strafpunkte gelöscht. Grund: %s",SpielerName(pID),punkte,reason);
SendClientMessage(playerid,BABYBLAU,string);
GetPlayerName(playerid,name,MAX_PLAYER_NAME),format(string,128,"(( HQ: %s hat %s %i Strafpunkte gelöscht. Grund: %s ))",SpielerName(playerid),SpielerName(pID),punkte,reason);
for(new i; i<MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i) || GetPVarInt(i,"Fraktion") != GetPVarInt(playerid,"Fraktion")) continue;
SendClientMessage(i,BLAU,string);
SetPVarInt(pID, "Punkte", GetPVarInt(pID, "Punkte")-punkte);
SpielerSpeichern(pID);
}
return 1;
} -
Habe einen Klammerfehler hat jemand ein Tool dafür
-
und weiß einer wie ich bei einem Strafpunkte System die Punkte selber angeben kann die ich ihm geben will?
Hab es nur geschafft das er immer nur 1 Punkt bekommt
Code : ocmd:punkte(playerid,params[])
{
if(!isPlayerInFrakt(playerid,2))return SendClientMessage(playerid,ROT,"Du bist nicht beim Ordnungsamt.");
new pID, reason[128],string[128],name[MAX_PLAYER_NAME];
if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid,GELB,"/punkte [ID] [Grund]");
format(string,128,"Ordnungsbeamter %s hat dir Strafpunkte eingetragen. Grund: %s",SpielerName(playerid),reason);
SendClientMessage(pID,BLUTROT,string);
format(string,128,"Du hast %s Strafpunkte eingetragen. Grund: %s",SpielerName(pID),reason);
SendClientMessage(playerid,BABYBLAU,string);
GetPlayerName(playerid,name,MAX_PLAYER_NAME),format(string,128,"(( HQ: %s hat %s Strafpunkte eingetragen. Grund: %s ))",SpielerName(playerid),SpielerName(pID),reason);
for(new i; i<MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i) || GetPVarInt(i,"Fraktion") != GetPVarInt(playerid,"Fraktion")) continue;
SendClientMessage(i,BLAU,string);
SetPVarInt(pID, "Punkte", GetPVarInt(pID, "Punkte")+1);
SpielerSpeichern(pID);
}
return 1;
} -
Guten Tag,
ich finde den Fehler einfach nicht.ocmd:stats(playerid)
{
new string[2049],stats[2049];
format(string,2049,"[Stats]");
format(string,2049,"Name: %s",GetPlayerName);
format(string,2049,"Level: %s",GetPlayerScore);
format(string,2049,"Fraktion: %s",GetPVarInt(playerid,"Fraktion"));
format(string,2049,"Rank: %s",GetPVarInt(playerid,"Rank"));
format(string,2049,"Strafpunkte: %s",GetPVarInt(playerid,"Punkte"));
format(string,2049,"Kills/Tode: %s/%s",GetPVarInt(playerid,"Kills"),GetPVarInt(playerid,"Tode"));
format(string,2049,"Warns: %s",GetPVarInt(playerid,"Warns"));
return
} -
blackshot
-
Weis einer die Antwort.
-
Nein ich Tabbe aus dem Game raus.
und es minimiert sich dann und maximiert sich dann nichtmehr. -
Guten Tag,
wenn ich auf einem Server bin und dann Alt + Tab oder ESC und dann Alt + Tab drücke um auf den Desktop zu kommen bleibt das spiel Minimiert?
Hat irgendjemand eine Idee das zu ändern.