Hallo.
Ich hab ein Problem mit den Nummernschild.
Es kommen keine Errors, aber wenn ich im server in einem car bin und es versuche crasht mein game.
Wie kann ich das beheben ?
Code:
dcmd_setplate(playerid,params[])
{
new plate[256];
if(pInfo[playerid][Adminlevel]<= 2) SendClientMessage(playerid,0xFF0000FF,"You need Admin Level 2 to use this Command");
else if(sscanf(params,"s",plate)) SendClientMessage(playerid,0xFF0000FF,"{FF0000}|- System -| {FFFFFF}Usage: /setplate [numberplate]");
else
{
new vehicle = GetPlayerVehicleID(playerid);
format(plate,sizeof(plate),"%s",plate);
SetVehicleNumberPlate(vehicle,plate);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetVehicleToRespawn(vehicle);
SetVehiclePos(vehicle,x,y,z);
PutPlayerInVehicle(playerid,vehicle,0);
}
return 1;
}
pls helfen