01.10.2013, 09:28
To Com Uma Semana Mexendo Com Isso E Gostaria Que Alguйm Me Ajuda-se.
Quero Colocar Esse [FS] Dentro Da [GM].
Mais Quando Coloco Do Jeito Que Falam Nos Outros Tutorias.
Se Alguйm Pode Me Ajuda.
Tem Como Vcs Deixa O Skype De VCs Para Mim Algumas DuvidaS.
Quero Colocar Esse [FS] Dentro Da [GM].
Код:
#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("FS: FireNitro"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("FS: FireNitro"); } #endif new CarFireObj[MAX_PLAYERS]; // top #define HOLDING(%0) \ ((newkeys & (%0)) == (%0)) #define RELEASED(%0) \ (((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (HOLDING( 4 ))// if player start use nitro { if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(IsValidObject(CarFireObj[playerid]) == 0)//add fire object when player use nitro { GameTextForPlayer(playerid, "~r~FireNitro! ", 1000, 1); CarFireObj[playerid] = CreateObject(18694, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); AttachObjectToVehicle(CarFireObj[playerid], GetPlayerVehicleID(playerid), 0.0, -2.3, 1.2, 180.0, 0.0, 0.0); } } } if (RELEASED( 4 ))// if player stop use nitro remove fire object { if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(IsValidObject(CarFireObj[playerid]) == 1)DestroyObject(CarFireObj[playerid]);// delete fire object } } return 1; }
Код:
• OnFilterScriptInit → OnGameModeInit • OnFilterScriptExit → OnGameModeExit
Код:
C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7158) : error 026: no matching "#if..." C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7161) : error 021: symbol already defined: "main" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7165) : error 026: no matching "#if..." C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7173) : error 055: start of function body without function header C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7175) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7199) : error 055: start of function body without function header C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7225) : error 021: symbol already defined: "Create3DTextLabel" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7229) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7230) : error 021: symbol already defined: "clock" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7252) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7256) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7261) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7272) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7283) : error 054: unmatched closing brace ("}") C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7286) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7311) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7324) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7333) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7355) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7360) : error 021: symbol already defined: "TextDrawSetOutline" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7364) : error 010: invalid function or declaration C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7378) : error 021: symbol already defined: "AddStaticVehicleEx" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7384) : error 021: symbol already defined: "AddStaticVehicle" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7389) : error 021: symbol already defined: "AddStaticVehicleEx" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7394) : error 021: symbol already defined: "AddStaticVehicleEx" C:\Users\DreikLOL\Desktop\Pasta Edter\TRABALHO\gamemodes\ZNS.pwn(7397) : error 021: symbol already defined: "AddStaticVehicleEx" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors
Tem Como Vcs Deixa O Skype De VCs Para Mim Algumas DuvidaS.