Hi Leute iwi hab ich ein kleines Problem mir einem Befehl der ist so:
if(strcmp(cmd,"/vec",true)==0)
{
if(IsPlayerConnected(playerid))
if(!isPlayerAnAdmin(playerid,10))return SendClientMessage(playerid,BLAU,"Du bist kein Admin.");
{ tmp=strtok(cmdtext,idx);if(!strlen(tmp))
{
SendClientMessage(playerid,C_H1," <Hilfe>: /vec (carid) (col.1) (col.2)");
SendClientMessage(playerid,C_H2," <Hilfe>: (vec) Spawnt ein Fahrzeug her!");
SendClientMessage(playerid,C_H3," <Hilfe>: Z.B. /vec 400 1 1 (landstal)");
SendClientMessage(playerid,C_H4," <Hilfe>: Eine Liste von Fahrzeugen: /vehlist ([GM]Lv.2)");return 1;
}
new car;car=strval(tmp);
if(car<400||car>611){SendClientMessage(playerid,C_H1," <Hilfe>: CarId 400 - 611");return 1;}
tmp=strtok(cmdtext,idx);if(!strlen(tmp))
{
SendClientMessage(playerid,C_H1," <Hilfe>: /vec (carid) (col.1) (col.2)");
SendClientMessage(playerid,C_H2," <Hilfe>: (vec) Spawnt ein Fahrzeug her!");
SendClientMessage(playerid,C_H3," <Hilfe>: Z.B. /vec 400 1 1 (landstal)");
SendClientMessage(playerid,C_H4," <Hilfe>: Eine Liste von Fahrzeugen: /vehlist ([GM]Lv.2)");return 1;
}
new color1;color1=strval(tmp);
if(color1<0||color1>255){SendClientMessage(playerid,C_H1, " <Hilfe>: Col. 0 - 126"); return 1;}
tmp=strtok(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,C_H1," <Hilfe>: /vec (carid) (col.1) (col.2)");
SendClientMessage(playerid,C_H2," <Hilfe>: (vec) Spawnt ein Fahrzeug her!");
SendClientMessage(playerid,C_H3," <Hilfe>: Z.B. /vec 400 1 1 (landstal)");
SendClientMessage(playerid,C_H4," <Hilfe>: Eine Liste von Fahrzeugen: /vehlist ([GM]Lv.2)");return 1;
}
new color2;color2=strval(tmp);
if(color2<0||color2>255){SendClientMessage(playerid,C_H1," <Hilfe>: Col. 0 - 126");return 1;}
color2=strval(tmp);
if(color2<0||color2>255){SendClientMessage(playerid,C_H2," <Hilfe>: Col. 0 - 126");return 1;}
SendClientMessage(playerid,GELB,"Du hast ein Auto gespawn!");
if(PI[playerid][GmAdm]>=2)
if(!isPlayerAnAdmin(playerid,10))return SendClientMessage(playerid,BLAU,"Du bist kein Admin.");
{
new Float:X,Float:Y,Float:Z,Float:R;
R=GetVehicleZAngle(v,R);DestroyVehicle(v);GetPlayerPos(playerid, X,Y,Z);SpCar=CreateVehicle(car,X,Y,Z,R,color1,color2,86400);SetVehicleZAngle(SpCar,R);PutPlayerInVehicle(playerid,SpCar,0);LinkVehicleToInterior(SpCar,GetPlayerInterior(playerid));
if(PI[playerid][GmAdm]>=4)
{
if(GetVehicleModel(SpCar)==559)
{
AddVehicleComponent(SpCar,1065);AddVehicleComponent(SpCar,1161);AddVehicleComponent(SpCar,1159);AddVehicleComponent(SpCar,1067);AddVehicleComponent(SpCar,1158);AddVehicleComponent(SpCar,1069);AddVehicleComponent(SpCar,1080);AddVehicleComponent(SpCar,1010);AddVehicleComponent(SpCar,1173);ChangeVehiclePaintjob(SpCar,1);
}
if(GetVehicleModel(SpCar)==560)
{
AddVehicleComponent(SpCar,1010);AddVehicleComponent(SpCar,1080);AddVehicleComponent(SpCar,1086);AddVehicleComponent(SpCar,1026);AddVehicleComponent(SpCar,1027);AddVehicleComponent(SpCar,1028);AddVehicleComponent(SpCar,1030);AddVehicleComponent(SpCar,1031);AddVehicleComponent(SpCar,1032);AddVehicleComponent(SpCar,1138);AddVehicleComponent(SpCar,1140);AddVehicleComponent(SpCar,1170);
}
}
if(GetVehicleModel(SpCar)==559||GetVehicleModel(SpCar)==560||GetVehicleModel(SpCar)==487||GetVehicleModel(SpCar)==441||GetVehicleModel(SpCar)==464||GetVehicleModel(SpCar)==465||GetVehicleModel(SpCar)==501||GetVehicleModel(SpCar)==564||GetVehicleModel(SpCar)==510){}else
{
if(PI[playerid][GmAdm]<=3)
{
SendClientMessage(playerid,C_SVR07," <Server>: {DFDFDF}[GM]Lv.2 = Jester[559] Sultan[560] Maverick[487] Mountain Bike[510]!");
SendClientMessage(playerid,C_SVR06," <Server>: {DFDFDF}RC Bandit[441] RC Baron[464] RC Raider[465] RC Goblin[501] RC Tiger[564]");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);
}
}
if(GetVehicleModel(SpCar)==520)
{
if(PI[playerid][GmAdm]<=3){SendClientMessage(playerid,C_SVR07," <Server>: {DFDFDF}Nur für [Adm]!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
if(PI[playerid][pArmy]==0){SendClientMessage(playerid,C_SVR08," <Server>: {DFDFDF}Nur für Army!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
}
if(GetVehicleModel(SpCar)==432)
{
if(PI[playerid][GmAdm]<=3){SendClientMessage(playerid,C_SVR07," <Server>: {DFDFDF}Nur für [Adm]!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
if(PI[playerid][pArmy]==0){SendClientMessage(playerid,C_SVR08," <Server>: {DFDFDF}Nur für Army!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
}
if(GetVehicleModel(SpCar)==425)
{
if(PI[playerid][GmAdm]<=3){SendClientMessage(playerid,C_SVR07," <Server>: {DFDFDF}Nur für [Adm]!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
if(PI[playerid][pArmy]==0){SendClientMessage(playerid,C_SVR08," <Server>: {DFDFDF}Nur für Army!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
}
if(GetVehicleModel(SpCar)==470)
{
if(PI[playerid][GmAdm]<=3){SendClientMessage(playerid,C_SVR07," <Server>: {DFDFDF}Nur für [Adm]!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
if(PI[playerid][pArmy]==0){SendClientMessage(playerid,C_SVR08," <Server>: {DFDFDF}Nur für Army!");TogglePlayerControllable(playerid,1);DestroyVehicle(SpCar);}
}
}
else{RingTone[playerid]=20;SendClientMessage(playerid,C_AHC04," <!!!>: {FFFFFF} [GM]Lv.2!");printf(" <!!!>: %s (vec)",playername2);} //Die Error Zeile
}
}
return 0;
}
Ja und ich habe diesen Error:
C:\Users\Mario2\Desktop\GTA SA SERVER\0.3e 1\gamemodes\Hauptscript.pwn(1067) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Danek schonmal im Vorraus
MFG
----
Mario