new engine, lights, alarm, doors, bonnet, boot, objective;
CMD:leallit(playerid, params[]){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SendClientMessage(playerid,0xff8400AA,\"Leállítottad a motort!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective); }else{ SendClientMessage(playerid,0xff8400AA,\"Nem vagy sofõr!\"); } return 1;}CMD:indit(playerid, params[]){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SendClientMessage(playerid,0xff8400AA,\"Beindítottad a motort!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective); }else{ SendClientMessage(playerid,0xff8400AA,\"Nem vagy sofõr!\"); } return 1;}
Szia! Tessék, ittvan! Amúgy azt a CMD-t zcmd parancsfeldolgozónak hívják CMD:leallit(playerid, params[]){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SendClientMessage(playerid,0xff8400AA,\"Leállítottad a motort!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, lights, alarm, doors, bonnet, boot, objective); }else{ SendClientMessage(playerid,0xff8400AA,\"Nem vagy sofõr!\"); } return 1;}CMD:indit(playerid, params[]){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ SendClientMessage(playerid,0xff8400AA,\"Beindítottad a motort!\"); GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1, lights, alarm, doors, bonnet, boot, objective); }else{ SendClientMessage(playerid,0xff8400AA,\"Nem vagy sofõr!\"); } return 1;}
C:\\Bencemod\\v2.6\\baremod.pwn(162) : error 017: undefined symbol \"engine\"C:\\Bencemod\\v2.6\\baremod.pwn(163) : error 017: undefined symbol \"lights\"C:\\Bencemod\\v2.6\\baremod.pwn(172) : error 017: undefined symbol \"engine\"C:\\Bencemod\\v2.6\\baremod.pwn(173) : error 017: undefined symbol \"lights\"[/quote]
Ohh bocsi!Mód eleje: new engine, lights, alarm, doors, bonnet, boot, objective;