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
/frc Befehl funktioniert nicht bzw ist ein error den ich nicht finde
- Schokodonut
- Geschlossen
- Erledigt
-
-
In der Zeile ist eine Klammer zu viel
das:
if(IsPlayerInFrakt(playerid,2)|| GetPVarInt(playerid,"Rang") >= 17))// das ist diese Zeile
zu:
if(IsPlayerInFrakt(playerid,2)|| GetPVarInt(playerid,"Rang") >= 17)// das ist diese Zeilesollte reichen
-
Danke
aber die autos respawnen nicht -
Probier es mal so
ocmd:frc(playerid,params[])
{
for(new i= 0;i<sizeof(armycars);i++)
{
if(IsVehicleEmpty(armycars[i]))
{
SetVehicleToRespawn(armycars[i]);
}
}
for(new j = 0; j < MAX_PLAYERS; j++)
{
if(IsPlayerInFrakt(j,2))
{
format(string,sizeof(string),"Die Fraktionsautos wurden von %s respawnt.",SpielerName(playerid));
SendClientMessage(j,COLOR_KOMISCH,string);
return 1;
}
}
return 1;
}Probier es mal so
Und sorry wegen der Fail Einrückung -
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"); -
breadfish.de
Hat das Thema geschlossen.