#include <a_samp>public OnFilterScriptInit() return print(\" *|Epsilon Nitrous|*\"),1;public OnPlayerExitVehicle(playerid,vehicleid) RemoveVehicleComponent(vehicleid, 1010);public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !CheckNitro(GetPlayerVehicleID(playerid))) return false; else if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);return 1;}CheckNitro(vid){ new NoNitro[] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; // unknownfor(new e = 0; e < sizeof(NoNitro); e++) if(GetVehicleModel(vid) == NoNitro[e]) return false;return true;}
public OnPlayerExitVehicle(playerid,vehicleid) RemoveVehicleComponent(vehicleid, 1010);public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if(newkeys == 4) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); } return 1;}
Köszönöm. Dupla hozzászólás automatikusan összefûzve. ( 2012. augusztus 09. - 10:44:57 )Hopsz ez erroros :/
public OnFilterScriptInit() return print(\" *|Epsilon Nitrous|*\"),1;
error 029: invalid expression, assumed zeroerror 004: function \"Streamer_OnFilterScriptInit\" is not implementederror 001: expected token: \";\", but found \"return\"fatal error 107: too many error messages on one line
Ezzel a sorral nincs kibékülve: public OnFilterScriptInit() return print(\" *|Epsilon Nitrous|*\"),1; Hibák: error 029: invalid expression, assumed zeroerror 004: function \"Streamer_OnFilterScriptInit\" is not implementederror 001: expected token: \";\", but found \"return\"fatal error 107: too many error messages on one line
#include <a_samp>public OnPlayerExitVehicle(playerid,vehicleid) RemoveVehicleComponent(vehicleid, 1010);public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || !CheckNitro(GetPlayerVehicleID(playerid))) return false; else if ((((newkeys & (4)) == (4)) && ((oldkeys & (4)) != (4)))) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); else if ((((newkeys & (4)) != (4)) && ((oldkeys & (4)) == (4)))) RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);return 1;}CheckNitro(vid){ new NoNitro[] = { 522,481,441,468,448,446,513,521,510,430,520,476,463 }; // unknownfor(new e = 0; e < sizeof(NoNitro); e++) if(GetVehicleModel(vid) == NoNitro[e]) return false;return true;}
Így sem jó. Nem lehet hogy frissítenem kellene az a_samp.incet?