#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; }
#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[])
{
new vehicleid = GetPlayerVehicleID(playerid);
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[])
{
new vehicleid = GetPlayerVehicleID(playerid);
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;
new vehicleid = GetPlayerVehicleID(playerid);
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;
new vehicleid = GetPlayerVehicleID(playerid);
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(45) : warning 217: loose indentation
D:\gta sa\HEHE!\filterscripts\godmode.pwn(46) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(4 ![]() D:\gta sa\HEHE!\filterscripts\godmode.pwn(53) : warning 217: loose indentation D:\gta sa\HEHE!\filterscripts\godmode.pwn(54) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(56) : warning 217: loose indentation D:\gta sa\HEHE!\filterscripts\godmode.pwn(65) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(77) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(80) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Warnings. getting more errors! |
D:\gta sa\HEHE!\filterscripts\godmode.pwn(45) : warning 217: loose indentation
D:\gta sa\HEHE!\filterscripts\godmode.pwn(46) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(4 ![]() D:\gta sa\HEHE!\filterscripts\godmode.pwn(53) : warning 217: loose indentation D:\gta sa\HEHE!\filterscripts\godmode.pwn(54) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(56) : warning 217: loose indentation D:\gta sa\HEHE!\filterscripts\godmode.pwn(65) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(77) : warning 202: number of arguments does not match definition D:\gta sa\HEHE!\filterscripts\godmode.pwn(80) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Warnings. getting more errors! |
CMD:ilikecheese(playerid, params[])
{
if(playerid != INVALID_PLAYER_ID)
{
SendClientMessage(playerid, -1, "hi");
}
return 1;
}
How it should be:
CMD:ilikecheese(playerid, params[])
{
if(playerid != INVALID_PLAYER_ID)
{
SendClientMessage(playerid, -1, "hi");
}
return 1;
}
#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(GetPlayerVehicleID(playerid),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(GetPlayerVehicleID(playerid),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(GetPlayerVehicleID(playerid),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(GetPlayerVehicleID(playerid),targetid,100.00);
SendClientMessage(playerid,0xFFFFFF,"player is taken your vehiclegod");
SendClientMessage(targetid,0xFFFFFF,"an admin has taken your vehiclegod");
return 1;
}
Dear ahameed4755, they are called warnings not errors the file should complie
If you want to fix warning 217: loose indentation goto http://boylett.com/scripts/autoindent.php |