Ok danke und wie muss ich den dann definieren
Beiträge von Schokodonut
-
-
meins ist aber ein selfmade und wie schreib ich den Befehl dann um ohne den ProxDetectorS
-
Hallo Leute was ist ProxDetectorS wie muss ich den definieren? hab ihn in den Befehl
ocmd:hs(playerid,params[])
{
if(IsACop(playerid))
{
new pID;
if(sscanf(params, "u", pID))
{
SendClientMessage(playerid,COLOR_ROT, "Benutzung: /hs [ID]");
return 1;
}
if(ProxDetectorS(5.0,playerid,pID))
{
new str[128], Officer[MAX_PLAYER_NAME], Spieler[MAX_PLAYER_NAME];
GetPlayerName(playerid, Officer, sizeof(Officer));
GetPlayerName(pID, Spieler, sizeof(Spieler));
format(str, sizeof(str), "Officer %s hat %s Handschellen angelegt", Officer, Spieler);
SendClientMessageToAll(COLOR_HELLBLAU, str);
SetPlayerSpecialAction(pID,24);
SetPlayerAttachedObject(pID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
}
else
{
SendClientMessage(playerid,COLOR_ROT,"Der Spieler ist nicht in deiner nähe!");
}
}
else
{
SendClientMessage(playerid,COLOR_ROT,"Du bist kein Beamter");
}
return 1;
} -
Bei mir geht das nicht habe nicht verändert aber es macht keine datei im scriptfiles ordner wie gedacht und habe es als filterscript drin
-
Hallo Leute wie oben schon die Überschrift sagt funktioniert das system bei mir nicht
hier einfach der Code
enum SInfo
{
admin,
Fraktion,
ban,
Perso,
Rang,
Leader,
Skin,
Weapon,
fraks,
}
if(dini_IntSet(Spielerdatei,"Skin")>=0)
{
switch(GetPVarInt(playerid,"Fraktion"))
{
case 0:{}
case 1:{SetPlayerPos(playerid,lspdspawn);}
case 2:{SetPlayerPos(playerid,armyspawn);}
case 3:{SetPlayerPos(playerid,fbispawn);}
case 4:{SetPlayerPos(playerid,vagosspawn);}
}
}
if(dini_IntSet(Spielerdatei,"Skin",0))
{
SetPlayerPos(playerid,1714.6899,-1887.3751,13.5666);
SetPlayerFacingAngle(playerid,352.5145);
SetPlayerCameraPos(playerid,1715.5356,-1880.0370,13.5664);
SetPlayerCameraLookAt(playerid,1714.6899,-1887.3751,13.5666);
}
return 1;
}
Bei Spielerspeichern
dini_IntSet(Spielerdatei,"Skin",GetPlayerSkin(playerid));
dini_IntSet(Spielerdatei,"Weapon",GetPlayerWeapon(playerid));
bei loadaccount
SetPlayerSkin(playerid,dini_Int(Spielerdatei,"Skin"));
GivePlayerWeapon(playerid,dini_Int(Spielerdatei,"Weapon"));
kennt ihr den Fehler ich bekomme keine Errors nur 2 warnings
der eine bei den Skins
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(567) : warning 202: number of arguments does not match definition
und die bei den Waffen
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(2115) : warning 202: number of arguments does not match definition -
Hast du hamachi oder root
-
danke jetzt geht aber kann wer mein Farben Problem auch lösen
SendClientMessage(playerid,0x99ff99ff,"Dein Name ist registriert.{0xFF0000FF}Logge{FFFFFF} dich mit deinem {0xFF0000FF}Passwort{FFFFFF} ein."); -
Steige bei den Fahrzeugen immer noch aus
-
hoffe das erklärt alles
armycars[0]=CreateVehicle(520,278.0000000,1956.0000000,18.6000004,265.9954834,102,102,-1);
armycars[1]=CreateVehicle(520,275.5000000,1989.1999512,18.6000004,265.9954834,102,102,-1);
armycars[2]=CreateVehicle(520,277.2000122,2023.4000244,18.6000004,265.9954834,102,102,-1);
armycars[3]=CreateVehicle(520,343.1000061,1974.5000000,18.6000004,87.9954834,102,102,-1);
armycars[4]=CreateVehicle(520,344.1000061,1940.6999512,18.6000004,87.9949951,102,102,-1);
armycars[5]=CreateVehicle(432,344.1000061,1907.3000488,17.7000008,90.0000000,102,102,-1);
armycars[29]=CreateVehicle(432,185.6000061,1930.4000244,17.8999996,179.9999390,102,102,-1);
SetVehicleNumberPlate(armycars[6]=CreateVehicle(497,195.6000061,1930.4000244,24.1000004,179.9999390,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[7]=CreateVehicle(497,205.6000061,1931.4000244,24.1000004,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[8]=CreateVehicle(497,217.6000061,1930.4000244,24.1000004,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[9]=CreateVehicle(427,208.6000061,1874.3000488,17.8999996,38.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[10]=CreateVehicle(427,219.1999969,1873.9000244,17.8999996,328.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[11]=CreateVehicle(433,199.6999969,1873.9000244,18.2000008,0.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[12]=CreateVehicle(433,227.0000000,1874.5999756,18.2000008,0.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[13]=CreateVehicle(560,235.0000000,1880.9000244,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[14]=CreateVehicle(596,192.3000031,1899.1999512,17.3999996,272.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[15]=CreateVehicle(596,192.3999939,1896.3000488,17.3999996,271.9995117,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[16]=CreateVehicle(596,192.6000061,1893.5999756,17.3999996,271.9995117,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[17]=CreateVehicle(596,192.6999969,1890.6999512,17.3999996,271.9995117,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[18]=CreateVehicle(596,192.6999969,1887.4000244,17.3999996,271.9995117,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[19]=CreateVehicle(596,192.8000031,1884.1999512,17.3999996,271.9995117,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[20]=CreateVehicle(560,235.0000000,1884.0999756,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[21]=CreateVehicle(560,235.0000000,1887.3000488,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[22]=CreateVehicle(560,234.8999939,1890.3000488,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[23]=CreateVehicle(560,234.8000031,1893.5999756,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[24]=CreateVehicle(560,234.8000031,1896.9000244,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[25]=CreateVehicle(429,234.8000031,1900.3000488,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[26]=CreateVehicle(429,234.8999939,1903.8000488,17.3999996,90.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[27]=CreateVehicle(415,235.1999969,1925.3000488,17.5000000,182.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[28]=CreateVehicle(415,238.3999939,1925.0999756,17.5000000,181.9995117,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[30]=CreateVehicle(468,190.1999969,1921.4000244,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[31]=CreateVehicle(468,191.1999969,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[32]=CreateVehicle(468,192.1000061,1921.1999512,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[33]=CreateVehicle(468,193.1000061,1921.1999512,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[34]=CreateVehicle(468,194.0000000,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[35]=CreateVehicle(468,194.8000031,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[36]=CreateVehicle(468,195.6999969,1921.0999756,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[37]=CreateVehicle(468,196.6000061,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[38]=CreateVehicle(470,199.5000000,1920.5000000,17.7999992,179.9999390,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[39]=CreateVehicle(470,202.6999969,1920.5000000,17.7999992,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[40]=CreateVehicle(470,206.3999939,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[41]=CreateVehicle(470,210.0000000,1920.6999512,17.7999992,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[42]=CreateVehicle(470,213.6999969,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[43]=CreateVehicle(470,217.6999969,1920.8000488,17.7999992,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[44]=CreateVehicle(470,221.6999969,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
SetVehicleNumberPlate(armycars[45]=CreateVehicle(425,237.0000000,1991.8000488,18.5000000,268.0000000,102,102,-1),"Army"); //Hunter
SetVehicleNumberPlate(armycars[46]=CreateVehicle(425,234.5000000,2020.3000488,20.1000004,267.9949951,102,102,-1),"Army"); //Hunter
SetVehicleNumberPlate(armycars[47]=CreateVehicle(425,215.3000031,1967.5000000,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
SetVehicleNumberPlate(armycars[48]=CreateVehicle(425,216.3000031,1989.3000488,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
SetVehicleNumberPlate(armycars[49]=CreateVehicle(425,233.1999969,1967.9000244,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
SetVehicleNumberPlate(armycars[50]=CreateVehicle(425,213.8999939,2020.0999756,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
aber hab jetzt ein return 1; hingemacht und jetzt kommt Pawn Compiler funktioniert nicht mehr -
Nein das ist ja das Problem ich kann nur nicht einsteigen egal welche frak ich bin
-
dini_IntSet(Spielerdatei,"Fraktion",GetPVarInt(playerid,"Fraktion"));
und Army ist die Fraktion 2 -
Warum kann keiner in die Flugzeuge/helis einsteigen
armycars[0]=CreateVehicle(520,278.0000000,1956.0000000,18.6000004,265.9954834,102,102,-1);
armycars[1]=CreateVehicle(520,275.5000000,1989.1999512,18.6000004,265.9954834,102,102,-1);
armycars[2]=CreateVehicle(520,277.2000122,2023.4000244,18.6000004,265.9954834,102,102,-1);
armycars[3]=CreateVehicle(520,343.1000061,1974.5000000,18.6000004,87.9954834,102,102,-1);
armycars[4]=CreateVehicle(520,344.1000061,1940.6999512,18.6000004,87.9949951,102,102,-1);
armycars[5]=CreateVehicle(432,344.1000061,1907.3000488,17.7000008,90.0000000,102,102,-1);
armycars[29]=CreateVehicle(432,185.6000061,1930.4000244,17.8999996,179.9999390,102,102,-1);if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(armycars); i++)
{
if(GetPlayerVehicleID(playerid)==armycars[i])
{
if(GetPVarInt(playerid,"Fraktion")!=2)
{
RemovePlayerFromVehicle(playerid);
}
}
}
} -
Wie gehören die Fraktionsvariablen gesetzt da diese falsch sind und ich nicht einsteigen kann
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(fbicars); i++)
{
if(GetPlayerVehicleID(playerid)==fbicars[i])
{
if(GetPVarInt(playerid,"Fraktion")!=2||GetPVarInt(playerid,"Fraktion")!=3||GetPVarInt(playerid,"Fraktion")!=1)
{
RemovePlayerFromVehicle(playerid);
}
}
}
} -
Danke aber irgendwas hat es mit den autos da sie nciht respawnen und einsteigen kann auch jeder obwohl alle Befehle richtig sind hier sind die auto definationen
vagoscars[0]=SetVehicleNumberPlate(CreateVehicle(560,1091.3000488,1917.1999512,10.6000004,0.0000000,6,6,-1),"Vagos"); //Sultan
vagoscars[1]=SetVehicleNumberPlate(CreateVehicle(560,1082.5999756,1917.3000488,10.6000004,0.0000000,6,6,-1),"Vagos"); //Sultan
vagoscars[2]=SetVehicleNumberPlate(CreateVehicle(560,1077.0999756,1917.5000000,10.6000004,0.0000000,6,6,-1),"Vagos"); //Sultan
vagoscars[3]=SetVehicleNumberPlate(CreateVehicle(560,1067.9000244,1917.8000488,10.6000004,0.0000000,6,6,-1),"Vagos"); //Sultan
vagoscars[4]=SetVehicleNumberPlate(CreateVehicle(560,1060.5999756,1917.5000000,10.6000004,0.0000000,6,6,-1),"Vagos"); //Sultan
vagoscars[5]=SetVehicleNumberPlate(CreateVehicle(560,1053.3000488,1917.5000000,10.6000004,0.0000000,6,6,-1),"Vagos"); //Sultan
vagoscars[6]=SetVehicleNumberPlate(CreateVehicle(555,1107.5000000,1934.5999756,10.6000004,90.0000000,6,6,-1),"Vagos"); //Windsor
vagoscars[7]=SetVehicleNumberPlate(CreateVehicle(555,1107.1999512,1926.0999756,10.6000004,90.0000000,6,6,-1),"Vagos"); //Windsor
vagoscars[8]=SetVehicleNumberPlate(CreateVehicle(555,1107.3000488,1919.9000244,10.6000004,90.0000000,6,6,-1),"Vagos"); //Windsor
vagoscars[9]=SetVehicleNumberPlate(CreateVehicle(482,1106.6999512,1911.3000488,11.1000004,90.0000000,6,6,-1),"Vagos"); //Burrito
vagoscars[10]=SetVehicleNumberPlate(CreateVehicle(482,1106.0999756,1904.1999512,11.1000004,90.0000000,6,6,-1),"Vagos"); //Burrito
vagoscars[11]=SetVehicleNumberPlate(CreateVehicle(482,1106.6999512,1897.0999756,11.1000004,90.0000000,6,6,-1),"Vagos"); //Burrito
vagoscars[12]=SetVehicleNumberPlate(CreateVehicle(487,1119.9000244,1929.5999756,16.7999992,90.0000000,6,6,-1),"Vagos"); //Maverick
vagoscars[13]=SetVehicleNumberPlate(CreateVehicle(487,1119.8000488,19-1.9000244,16.7999992,90.0000000,6,6,-1),"Vagos"); //Maverick
vagoscars[14]=SetVehicleNumberPlate(CreateVehicle(487,1120.3000488,1901.1999512,16.7999992,90.0000000,6,6,-1),"Vagos"); //Maverick
vagoscars[15]=SetVehicleNumberPlate(CreateVehicle(513,1141.8000488,1969.1999512,11.6000004,182.0000000,6,6,-1),"Vagos"); //Stunt
armycars[0]=SetVehicleNumberPlate(CreateVehicle(520,278.0000000,1956.0000000,18.6000004,265.9954834,102,102,-1),"Army");
armycars[1]=SetVehicleNumberPlate(CreateVehicle(520,275.5000000,1989.1999512,18.6000004,265.9954834,102,102,-1),"Army");
armycars[2]=SetVehicleNumberPlate(CreateVehicle(520,277.2000122,2023.4000244,18.6000004,265.9954834,102,102,-1),"Army");
armycars[3]=SetVehicleNumberPlate(CreateVehicle(520,343.1000061,1974.5000000,18.6000004,87.9954834,102,102,-1),"Army");
armycars[4]=SetVehicleNumberPlate(CreateVehicle(520,344.1000061,1940.6999512,18.6000004,87.9949951,102,102,-1),"Army");
armycars[5]=SetVehicleNumberPlate(CreateVehicle(432,344.1000061,1907.3000488,17.7000008,90.0000000,102,102,-1),"Army");
armycars[6]=SetVehicleNumberPlate(CreateVehicle(497,195.6000061,1930.4000244,24.1000004,179.9999390,102,102,-1),"Army");
armycars[7]=SetVehicleNumberPlate(CreateVehicle(497,205.6000061,1931.4000244,24.1000004,179.9945068,102,102,-1),"Army");
armycars[8]=SetVehicleNumberPlate(CreateVehicle(497,217.6000061,1930.4000244,24.1000004,179.9945068,102,102,-1),"Army");
armycars[9]=SetVehicleNumberPlate(CreateVehicle(427,208.6000061,1874.3000488,17.8999996,38.0000000,102,102,-1),"Army");
armycars[10]=SetVehicleNumberPlate(CreateVehicle(427,219.1999969,1873.9000244,17.8999996,328.0000000,102,102,-1),"Army");
armycars[11]=SetVehicleNumberPlate(CreateVehicle(433,199.6999969,1873.9000244,18.2000008,0.0000000,102,102,-1),"Army");
armycars[12]=SetVehicleNumberPlate(CreateVehicle(433,227.0000000,1874.5999756,18.2000008,0.0000000,102,102,-1),"Army");
armycars[13]=SetVehicleNumberPlate(CreateVehicle(560,235.0000000,1880.9000244,17.3999996,90.0000000,102,102,-1),"Army");
armycars[14]=SetVehicleNumberPlate(CreateVehicle(596,192.3000031,1899.1999512,17.3999996,272.0000000,102,102,-1),"Army");
armycars[15]=SetVehicleNumberPlate(CreateVehicle(596,192.3999939,1896.3000488,17.3999996,271.9995117,102,102,-1),"Army");
armycars[16]=SetVehicleNumberPlate(CreateVehicle(596,192.6000061,1893.5999756,17.3999996,271.9995117,102,102,-1),"Army");
armycars[17]=SetVehicleNumberPlate(CreateVehicle(596,192.6999969,1890.6999512,17.3999996,271.9995117,102,102,-1),"Army");
armycars[18]=SetVehicleNumberPlate(CreateVehicle(596,192.6999969,1887.4000244,17.3999996,271.9995117,102,102,-1),"Army");
armycars[19]=SetVehicleNumberPlate(CreateVehicle(596,192.8000031,1884.1999512,17.3999996,271.9995117,102,102,-1),"Army");
armycars[20]=SetVehicleNumberPlate(CreateVehicle(560,235.0000000,1884.0999756,17.3999996,90.0000000,102,102,-1),"Army");
armycars[21]=SetVehicleNumberPlate(CreateVehicle(560,235.0000000,1887.3000488,17.3999996,90.0000000,102,102,-1),"Army");
armycars[22]=SetVehicleNumberPlate(CreateVehicle(560,234.8999939,1890.3000488,17.3999996,90.0000000,102,102,-1),"Army");
armycars[23]=SetVehicleNumberPlate(CreateVehicle(560,234.8000031,1893.5999756,17.3999996,90.0000000,102,102,-1),"Army");
armycars[24]=SetVehicleNumberPlate(CreateVehicle(560,234.8000031,1896.9000244,17.3999996,90.0000000,102,102,-1),"Army");
armycars[25]=SetVehicleNumberPlate(CreateVehicle(429,234.8000031,1900.3000488,17.3999996,90.0000000,102,102,-1),"Army");
armycars[26]=SetVehicleNumberPlate(CreateVehicle(429,234.8999939,1903.8000488,17.3999996,90.0000000,102,102,-1),"Army");
armycars[27]=SetVehicleNumberPlate(CreateVehicle(415,235.1999969,1925.3000488,17.5000000,182.0000000,102,102,-1),"Army");
armycars[28]=SetVehicleNumberPlate(CreateVehicle(415,238.3999939,1925.0999756,17.5000000,181.9995117,102,102,-1),"Army");
armycars[29]=SetVehicleNumberPlate(CreateVehicle(432,185.6000061,1930.4000244,17.8999996,179.9999390,102,102,-1),"Army");
armycars[30]=SetVehicleNumberPlate(CreateVehicle(468,190.1999969,1921.4000244,17.3999996,180.0000000,102,102,-1),"Army");
armycars[31]=SetVehicleNumberPlate(CreateVehicle(468,191.1999969,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
armycars[32]=SetVehicleNumberPlate(CreateVehicle(468,192.1000061,1921.1999512,17.3999996,180.0000000,102,102,-1),"Army");
armycars[33]=SetVehicleNumberPlate(CreateVehicle(468,193.1000061,1921.1999512,17.3999996,180.0000000,102,102,-1),"Army");
armycars[34]=SetVehicleNumberPlate(CreateVehicle(468,194.0000000,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
armycars[35]=SetVehicleNumberPlate(CreateVehicle(468,194.8000031,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
armycars[36]=SetVehicleNumberPlate(CreateVehicle(468,195.6999969,1921.0999756,17.3999996,180.0000000,102,102,-1),"Army");
armycars[37]=SetVehicleNumberPlate(CreateVehicle(468,196.6000061,1921.3000488,17.3999996,180.0000000,102,102,-1),"Army");
armycars[38]=SetVehicleNumberPlate(CreateVehicle(470,199.5000000,1920.5000000,17.7999992,179.9999390,102,102,-1),"Army");
armycars[39]=SetVehicleNumberPlate(CreateVehicle(470,202.6999969,1920.5000000,17.7999992,179.9945068,102,102,-1),"Army");
armycars[40]=SetVehicleNumberPlate(CreateVehicle(470,206.3999939,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
armycars[41]=SetVehicleNumberPlate(CreateVehicle(470,210.0000000,1920.6999512,17.7999992,179.9945068,102,102,-1),"Army");
armycars[42]=SetVehicleNumberPlate(CreateVehicle(470,213.6999969,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
armycars[43]=SetVehicleNumberPlate(CreateVehicle(470,217.6999969,1920.8000488,17.7999992,179.9945068,102,102,-1),"Army");
armycars[44]=SetVehicleNumberPlate(CreateVehicle(470,221.6999969,1920.5999756,17.7999992,179.9945068,102,102,-1),"Army");
armycars[45]=SetVehicleNumberPlate(CreateVehicle(425,237.0000000,1991.8000488,18.5000000,268.0000000,102,102,-1),"Army"); //Hunter
armycars[46]=SetVehicleNumberPlate(CreateVehicle(425,234.5000000,2020.3000488,20.1000004,267.9949951,102,102,-1),"Army"); //Hunter
armycars[47]=SetVehicleNumberPlate(CreateVehicle(425,215.3000031,1967.5000000,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
armycars[48]=SetVehicleNumberPlate(CreateVehicle(425,216.3000031,1989.3000488,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
armycars[49]=SetVehicleNumberPlate(CreateVehicle(425,233.1999969,1967.9000244,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
armycars[50]=SetVehicleNumberPlate(CreateVehicle(425,213.8999939,2020.0999756,18.5000000,267.9949951,102,102,-1),"Army"); //Hunter
fbicars[0]=SetVehicleNumberPlate(CreateVehicle(409,1057.8000488,1032.5999756,10.1000004,0.0000000,200,200,-1),"FBI");
fbicars[1]=SetVehicleNumberPlate(CreateVehicle(596,1048.3000488,1040.5999756,10.0000000,0.0000000,200,200,-1),"FBI");
fbicars[2]=SetVehicleNumberPlate(CreateVehicle(596,1052.5999756,1035.5999756,9.8999996,0.0000000,200,200,-1),"FBI");
fbicars[3]=SetVehicleNumberPlate(CreateVehicle(596,1044.4000244,1046.0999756,10.0000000,0.0000000,200,200,-1),"FBI");
fbicars[4]=SetVehicleNumberPlate(CreateVehicle(490,1040.0999756,1050.6999512,10.5000000,0.0000000,200,200,-1),"FBI");
fbicars[5]=SetVehicleNumberPlate(CreateVehicle(490,1037.3000488,1064.0999756,10.5000000,0.0000000,200,200,-1),"FBI");
fbicars[6]=SetVehicleNumberPlate(CreateVehicle(490,1035.1999512,1074.1999512,10.5000000,344.0000000,200,200,-1),"FBI");
fbicars[7]=SetVehicleNumberPlate(CreateVehicle(490,1031.3000488,1079.1999512,10.5000000,340.0000000,200,200,-1),"FBI");
fbicars[8]=SetVehicleNumberPlate(CreateVehicle(528,1028.5000000,1089.0000000,11.1999998,0.0000000,200,200,-1),"FBI");
fbicars[9]=SetVehicleNumberPlate(CreateVehicle(528,1036.8000488,1088.4000244,10.3000002,0.0000000,200,200,-1),"FBI");
fbicars[10]=SetVehicleNumberPlate(CreateVehicle(599,1026.0000000,1098.5000000,11.3000002,0.0000000,200,200,-1),"FBI");
fbicars[11]=SetVehicleNumberPlate(CreateVehicle(599,1032.1999512,1099.9000244,11.3000002,0.0000000,200,200,-1),"FBI");
fbicars[12]=SetVehicleNumberPlate(CreateVehicle(599,1039.1999512,1098.5000000,10.3999996,0.0000000,200,200,-1),"FBI");
fbicars[13]=SetVehicleNumberPlate(CreateVehicle(411,1053.3000488,1048.0000000,10.1000004,0.0000000,200,200,-1),"FBI");
fbicars[14]=SetVehicleNumberPlate(CreateVehicle(411,1059.8000488,1051.5000000,10.1000004,0.0000000,200,200,-1),"FBI");
fbicars[15]=SetVehicleNumberPlate(CreateVehicle(451,1063.8000488,1052.5999756,10.0000000,0.0000000,200,200,-1),"FBI");
fbicars[16]=SetVehicleNumberPlate(CreateVehicle(451,1068.0999756,1057.5000000,10.0000000,0.0000000,200,200,-1),"FBI");
fbicars[17]=SetVehicleNumberPlate(CreateVehicle(487,1074.6999512,1074.0999756,11.1000004,0.0000000,200,200,-1),"FBI");
fbicars[18]=SetVehicleNumberPlate(CreateVehicle(487,1084.1999512,1066.3000488,11.1000004,0.0000000,200,200,-1),"FBI");
fbicars[19]=SetVehicleNumberPlate(CreateVehicle(487,1095.1999512,1066.6999512,11.1000004,0.0000000,200,200,-1),"FBI");
fbicars[20]=SetVehicleNumberPlate(CreateVehicle(497,1081.1999512,1083.5000000,11.6999998,0.0000000,200,200,-1),"FBI");
fbicars[21]=SetVehicleNumberPlate(CreateVehicle(497,1097.8000488,1081.6999512,11.6999998,0.0000000,200,200,-1),"FBI");
fbicars[22]=SetVehicleNumberPlate(CreateVehicle(497,1088.5000000,1076.0000000,11.6999998,0.0000000,200,200,-1),"FBI");
fbicars[23]=SetVehicleNumberPlate(CreateVehicle(522,1027.6999512,1106.9000244,10.6999998,0.0000000,200,200,-1),"FBI");
fbicars[25]=SetVehicleNumberPlate(CreateVehicle(522,1032.8000488,1107.1999512,10.6999998,0.0000000,200,200,-1),"FBI");
was ist da falsch hab sie unter OnGameModInitgefunden es gehört
SetVehicleNumberPlate(fbicars[24]=CreateVehicle(522,1030.0000000,1106.9000244,10.6999998,0.0000000,200,200,-1),"FBI"); -
Danke
aber die autos respawnen nicht -
ocmd:frc(playerid,params[])
{
new string[128];
if(IsPlayerInFrakt(playerid,2)|| GetPVarInt(playerid,"Rang") >= 17))// das ist diese Zeile
{
if(IsVehicleEmpty(armycars[0])) SetVehicleToRespawn(armycars[0]);
if(IsVehicleEmpty(armycars[1])) SetVehicleToRespawn(armycars[1]);
if(IsVehicleEmpty(armycars[2])) SetVehicleToRespawn(armycars[2]);
if(IsVehicleEmpty(armycars[3])) SetVehicleToRespawn(armycars[3]);
if(IsVehicleEmpty(armycars[4])) SetVehicleToRespawn(armycars[4]);
if(IsVehicleEmpty(armycars[5])) SetVehicleToRespawn(armycars[5]);
if(IsVehicleEmpty(armycars[6])) SetVehicleToRespawn(armycars[6]);
if(IsVehicleEmpty(armycars[7])) SetVehicleToRespawn(armycars[7]);
if(IsVehicleEmpty(armycars[8])) SetVehicleToRespawn(armycars[8]);
if(IsVehicleEmpty(armycars[9])) SetVehicleToRespawn(armycars[9]);
if(IsVehicleEmpty(armycars[10])) SetVehicleToRespawn(armycars[10]);
if(IsVehicleEmpty(armycars[11])) SetVehicleToRespawn(armycars[11]);
if(IsVehicleEmpty(armycars[12])) SetVehicleToRespawn(armycars[12]);
if(IsVehicleEmpty(armycars[13])) SetVehicleToRespawn(armycars[13]);
if(IsVehicleEmpty(armycars[14])) SetVehicleToRespawn(armycars[14]);
if(IsVehicleEmpty(armycars[15])) SetVehicleToRespawn(armycars[15]);
if(IsVehicleEmpty(armycars[16])) SetVehicleToRespawn(armycars[16]);
if(IsVehicleEmpty(armycars[17])) SetVehicleToRespawn(armycars[17]);
if(IsVehicleEmpty(armycars[18])) SetVehicleToRespawn(armycars[18]);
if(IsVehicleEmpty(armycars[19])) SetVehicleToRespawn(armycars[19]);
if(IsVehicleEmpty(armycars[20])) SetVehicleToRespawn(armycars[20]);
if(IsVehicleEmpty(armycars[21])) SetVehicleToRespawn(armycars[21]);
if(IsVehicleEmpty(armycars[22])) SetVehicleToRespawn(armycars[22]);
if(IsVehicleEmpty(armycars[23])) SetVehicleToRespawn(armycars[23]);
if(IsVehicleEmpty(armycars[24])) SetVehicleToRespawn(armycars[24]);
if(IsVehicleEmpty(armycars[25])) SetVehicleToRespawn(armycars[25]);
if(IsVehicleEmpty(armycars[26])) SetVehicleToRespawn(armycars[26]);
if(IsVehicleEmpty(armycars[27])) SetVehicleToRespawn(armycars[27]);
if(IsVehicleEmpty(armycars[28])) SetVehicleToRespawn(armycars[28]);
if(IsVehicleEmpty(armycars[29])) SetVehicleToRespawn(armycars[29]);
if(IsVehicleEmpty(armycars[30])) SetVehicleToRespawn(armycars[30]);
if(IsVehicleEmpty(armycars[31])) SetVehicleToRespawn(armycars[31]);
if(IsVehicleEmpty(armycars[32])) SetVehicleToRespawn(armycars[32]);
if(IsVehicleEmpty(armycars[33])) SetVehicleToRespawn(armycars[33]);
if(IsVehicleEmpty(armycars[34])) SetVehicleToRespawn(armycars[34]);
if(IsVehicleEmpty(armycars[35])) SetVehicleToRespawn(armycars[35]);
if(IsVehicleEmpty(armycars[36])) SetVehicleToRespawn(armycars[36]);
if(IsVehicleEmpty(armycars[37])) SetVehicleToRespawn(armycars[37]);
if(IsVehicleEmpty(armycars[38])) SetVehicleToRespawn(armycars[38]);
if(IsVehicleEmpty(armycars[39])) SetVehicleToRespawn(armycars[39]);
if(IsVehicleEmpty(armycars[40])) SetVehicleToRespawn(armycars[40]);
if(IsVehicleEmpty(armycars[41])) SetVehicleToRespawn(armycars[41]);
if(IsVehicleEmpty(armycars[42])) SetVehicleToRespawn(armycars[42]);
if(IsVehicleEmpty(armycars[43])) SetVehicleToRespawn(armycars[43]);
if(IsVehicleEmpty(armycars[44])) SetVehicleToRespawn(armycars[44]);
if(IsVehicleEmpty(armycars[45])) SetVehicleToRespawn(armycars[45]);
if(IsVehicleEmpty(armycars[46])) SetVehicleToRespawn(armycars[46]);
if(IsVehicleEmpty(armycars[47])) SetVehicleToRespawn(armycars[47]);
if(IsVehicleEmpty(armycars[48])) SetVehicleToRespawn(armycars[48]);
if(IsVehicleEmpty(armycars[49])) SetVehicleToRespawn(armycars[49]);
if(IsVehicleEmpty(armycars[50])) SetVehicleToRespawn(armycars[50]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInFrakt(playerid,2))
{
format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
SendClientMessage(i,COLOR_KOMISCH,string);
return 1;
}
}
}
return 1;
}
der Error
C:\Users\Andreas\Desktop\samp\sampserver\gamemodes\test.pwn(805) : error 029: invalid expression, assumed zero -
Du brauchst aktuelle Plugins
[07:14:52] Failed (plugins/sscanf.so: cannot open shared object file: No such file or directory)
ALso du brauchst das sscanf Plugin das musst du in den Ordner Plugins packen -
Ne sry geht immer noch nicht da ist die eine Farbe so komisch grün und die andere weiß ich will aber nur das die zwei Wörter rot sind alles andere in Color_Komisch
-
Danke
kann den Farbenfehler auch noch wer lösen
SendClientMessage(playerid,COLOR_KOMISCH,"Dein Name ist registriert.{0xFF0000FF}Logge{FFFFFF} dich mit deinem {0xFF0000FF}Passwort{FFFFFF} ein."); -
hab jetzt
SetTimer("testtimer",5000,1);