Hallo, wollte fragen was hier falsch ist:
ocmd:port(playerid,params[])
{
ShowPlayerDialog(playerid,DIALOG_STYLE_LIST,"Ports","Los Santos\nSan Fierro\nLas Venturas","Porten","Abbrechen");
return 1;
}
C:\Users\Hanne\Desktop\Southstate - Roleplay\WoS 3.0.3\gamemodes\test.pwn(110) : error 035: argument type mismatch (argument 3)
ocmd:spawn(playerid,params[])
{
new cid;
if(sscanf(params,"i",cid))return SendClientMessage(playerid,GELB,"Befehl:/spawn <Fahrzeug ID>");
if(cid<400||cid>611)return SendClientMessage(playerid,GELB,"Bitte gib eine Fahrzeug ID ein!");
new Float:X, Float:Y,Float:Z,FLOAT:ROT;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,ROT);//
new fahrzeug;
fahrzeug=CreateVehicle(cid,X,Y,Z,ROT,-1,-1,0);//
PutPlayerInVehicle(playerid,fahrzeug,0);
return 1;
}
Hier sollten 2 Klammern fehlen
Gruß