17.09.2015, 11:52
help me!
D:\gta sa\HEHE!\filterscripts\godmode.pwn(45) : error 017: undefined symbol "vehicleid"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(47) : warning 217: loose indentation
D:\gta sa\HEHE!\filterscripts\godmode.pwn(52) : error 017: undefined symbol "vehicleid"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(54) : warning 217: loose indentation
D:\gta sa\HEHE!\filterscripts\godmode.pwn(62) : error 017: undefined symbol "vehicleid"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(71) : error 001: expected token: ")", but found "return"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(73) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Code:
#define FILTERSCRIPT #include <a_samp> #include <zcmd> #include <sscanf> CMD:god(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin use /rcon login [password] to use this command"); SetPlayerHealth(playerid,999999.99); SendClientMessage(playerid,0xFFFFFF,"godmode enabled"); return 1; } CMD:godoff(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin use /rcon login [password] to use this command"); SetPlayerHealth(playerid,100.00); SendClientMessage(playerid,0xFFFFFF,"godmode disabled"); return 1; } CMD:givegod(playerid,params[]) { new targetid; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin use /rcon login [password] to use this command"); if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,0xFFFFFF,"usage [playerid]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,0xFFFFFF,"player is not connected"); SetPlayerHealth(targetid, 99999.99); SendClientMessage(targetid,0xFFFFFF,"an admin has given you godmode"); SendClientMessage(playerid,0xFFFFFF,"player godmode is activated"); return 1; } CMD:getgod(playerid,params[]) { new targetid; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin use /rcon login [password] to use this command"); if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,0xFFFFFF,"usage [playerid]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,0xFFFFFF,"player is not connected"); SetPlayerHealth(targetid, 100); SendClientMessage(targetid,0xFFFFFF,"an admin has taken your godmode"); SendClientMessage(playerid,0xFFFFFF,"player godmode is de-activated"); return 1; } CMD:vehgod(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin"); SetVehicleHealth(vehicleid,playerid,99999.99); SendClientMessage(playerid,0xFFFFFFF,"Vehicle Godmode Activated"); return 1; } CMD:vehgodoff(playerid,params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin"); SetVehicleHealth(vehicleid,playerid,100.00); SendClientMessage(playerid,0xFFFFFFF,"Vehicle Godmode De-activated"); return 1; } CMD:givevehgod(playerid,params[]) { new targetid; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin use /rcon login [password] to use this command"); if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,0xFFFFFF,"usage [playerid]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,0xFFFFFF,"player is not connected"); SetVehicleHealth(vehicleid,playerid,99999.99); SendClientMessage(targetid,0xFFFFFF,"an admin has gived you godmode"); SendClientMessage(playerid,0xFFFFFF,"player godmode is activated"); return 1; } CMD:takevehgod(playerid,params[]) { new targetid; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"you are not rcon admin"); if(sscanf(params,"u",(targetid)) return SendClientMessage(playerid,0xFFFFFF,"usage [playerid]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid,0xFFFFFF,"Player is not connected"); SetVehicleHealth(vehicleid,targetid,100.00); SendClientMessage(playerid,0xFFFFFF,"player is taken your vehiclegod"); SendClientMessage(targetid,0xFFFFFF,"an admin has taken your vehiclegod"); return 1; }
D:\gta sa\HEHE!\filterscripts\godmode.pwn(47) : warning 217: loose indentation
D:\gta sa\HEHE!\filterscripts\godmode.pwn(52) : error 017: undefined symbol "vehicleid"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(54) : warning 217: loose indentation
D:\gta sa\HEHE!\filterscripts\godmode.pwn(62) : error 017: undefined symbol "vehicleid"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(71) : error 001: expected token: ")", but found "return"
D:\gta sa\HEHE!\filterscripts\godmode.pwn(73) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.