help me! again!
#1

help me!

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(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.
Reply
#2

help me!
Reply
#3

PHP 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(targetid99999.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(targetid100);
    
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;

Reply
#4

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 : warning 217: loose indentation
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!
Reply
#5

Quote:
Originally Posted by ahameed4755
View Post
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 : warning 217: loose indentation
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!
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
Reply
#6

Quote:
Originally Posted by ahameed4755
View Post
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 : warning 217: loose indentation
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!
Loose indentation:
PHP Code:
CMD:ilikecheese(playeridparams[])
{
    if(
playerid != INVALID_PLAYER_ID)
 {
         
SendClientMessage(playerid, -1"hi");
    }
 return 
1;
}
How it should be:
CMD:ilikecheese(playeridparams[])
{
    if(
playerid != INVALID_PLAYER_ID)
    {
         
SendClientMessage(playerid, -1"hi");
    }
    return 
1;

What are the lines for the other warnings?
Reply
#7

PHP 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(targetid99999.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(targetid100);
    
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;

Reply
#8

Quote:
Originally Posted by xTURBOx
View Post
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
hmm... thanks i didnt read that was warnings ....
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)