Hey bitte helfen , Danke im Voraus .
Errors :
: error 017: undefined symbol "params"
: warning 215: expression has no effect
: expected token: ";", but found "if"
undefined symbol "etVehicleNumberPlate"
warning 215: expression has no effect
error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Zeieln :
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/veh", true))
{
new ModelID, color[2],Float:VehPos[4], vehicleid;
if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,COLOR_ROT,"Du bist nicht zu Fuss");
if(sscanf(params, "ddd",ModelID,color[0],color[1])) return SendClientMessage(playerid,COLOR_BLAU, "/veh [vehicleid] [color1] [color2]");#Error kein C&P Tut.
if(ModelID < 400 || ModelID > 611) return SendClientMessage(playerid,COLOR_ROT, "Es muss eine Fahrzeug ID zwischen 411 und 611 sein!");
if(color[0] < 0 || color[0] > 255 || color[1] < 0 || color[1] > 255) return SendClientMessage(playerid,COLOR_ROT, "Die Color-IDs müssen zwischen 0 und 126 sein!");
{
GetPlayerPos(playerid, VehPos[0],VehPos[1],VehPos[2]);
GetPlayerFacingAngle(playerid, VehPos[3]);
vehicleid = CreateVehicle(ModelID,VehPos[0],VehPos[1],VehPos[2],VehPos[3],color[0],color[1],-1);
LinkVehicleToInterior(vehicleid,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(vehicleid,GetPlayerVirtualWorld(playerid));
etVehicleNumberPlate(vehicleid,"was das hier ? :D");
SetVehicleToRespawn(vehicleid);#Error kein C&P Tut.
PutPlayerInVehicle(playerid, vehicleid, 0);
SendClientMessage(playerid,COLOR_ROT,"Car gespawnt, Viel Spaß!");
}
}