Hallo liebes forum
Wenn ich mein script bzw ein gf edit compile bekomme ich diese errors:
(19483) : error 012: invalid function call, not a valid address
(19483) : warning 215: expression has no effect
(19483) : warning 215: expression has no effect
(19483) : error 001: expected token: ";", but found ")"
(19483) : error 029: invalid expression, assumed zero
(19483) : fatal error 107: too many error messages on one line
/edit sry hat was gefehlt :O
19483:
Function OnPlayerCommandText(playerid, cmdtext[])
{
M_OnPlayerCommandText(playerid,cmdtext); <--= 19483
cmd = strtok(cmdtext, idx);
new string[256];
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new playername[MAX_PLAYER_NAME];
new cmd[256];
new tmp[256];
new giveplayerid, moneys, idx;
new dancestyle;
GetPlayerName(playerid,sendername,sizeof(sendername));
/* dcmd(tban,4,cmdtext);
dcmd(tunban,6,cmdtext);
dcmd(kennzeichenerlauben,19,cmdtext);
dcmd(kennzeichen,11,cmdtext);
dcmd(sirene,6,cmdtext);
dcmd(licht,5,cmdtext);
dcmd(kofferraum,10,cmdtext);
dcmd(farbe,5,cmdtext);
dcmd(efa,3,cmdtext);*/
dcmd(gocords,7,cmdtext);
dcmd(zollcontrol,11,cmdtext);
dcmd(sirene,6,cmdtext);
dcmd(givedonator,11,cmdtext);
//dcmd(unban,5,cmdtext);
dcmd(arbobjid,8,cmdtext);
dcmd(arb,3,cmdtext);
dcmd(deletearb,9,cmdtext);
dcmd(deletearbfor,12,cmdtext);
dcmd(arball,6,cmdtext);
dcmd(arbforall,9,cmdtext);
dcmd(arbobj,6,cmdtext);
if(strcmp(cmd, "/supmobil", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1||PlayerInfo[playerid][pSupporter] >= 1)
{
if(supmobil[playerid] != 0)
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(supmobil[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(supmobil[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
DestroyVehicle(supmobil[playerid]);
Delete3DTextLabel(suptext[playerid]);
SendClientMessage(playerid, COLOR_GREY, "Fahrzeug vernichtet.");
supmobil[playerid] = 0;
}
else
{
ShowPlayerDialog(playerid, DIALOG_SUPMOBIL, DIALOG_STYLE_LIST, "Fahrzeug Auswahl", "1. Comet\n2. Sultan\n3. Bus\n4. NRG\n5. Boot\n6. Heli\n7. Fahrzeug ID", "Auswahl", "Abbrechen");
}
}
else return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Admin.");
}
return 1;
}