Hab versucht einen tow befehl zu machen und ja macht paar Errors
C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\GRSA-Script.pwn(6355) : error 020: invalid symbol name ""
C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\GRSA-Script.pwn(6355) : error 029: invalid expression, assumed zero
C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\GRSA-Script.pwn(6355) : warning 215: expression has no effect
C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\GRSA-Script.pwn(6355) : error 017: undefined symbol "y"
C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\GRSA-Script.pwn(6355) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
ocmd:tow(playerid,params[])
{
new pVeh=GetPlayerVehicleID(playerid),Float:PosX,Float:PosY,Float:PosZ;
if(!IstSpielerInFraktion(playerid,5)) return SendClientMessage(playerid,Rot,"Du bist nicht beim ADAC!");
if(GetVehicleModel(pVeh) != 525) return SendClientMessage(playerid,Rot,"Du musst in einem Abschleppwagen sein um abschleppen zu können!");
for(new y = 0; y < sizeof (MAX_VEHICLES); y++)
{
if(!IsValidVehicle(MAX_VEHICLES[y])) continue;
GetVehiclePos(MAX_VEHICLES[y],PosY,PosY,PosZ);
if(IsPlayerInRangeOfPoint(playerid,5,PX,PY,PZ))
{
AttachTrailerToVehicle(y,pVEh);
break;
}
}
return 1;
}