Need help again
#1

Alright guys I need help I got this errors when I compiled but I got ZCMD include..

Код:
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(385) : error 021: symbol already defined: "GivePlayerMoney"
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(389) : error 010: invalid function or declaration
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(392) : error 021: symbol already defined: "SetPlayerHealth"
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(396) : error 021: symbol already defined: "GivePlayerWeapon"
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(402) : error 010: invalid function or declaration
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(405) : error 021: symbol already defined: "GivePlayerWeapon"
C:\Documents and Settings\allenloza\My Documents\Downloads\Compressed\samp03dsvr_R2_win32\gamemodes\FunWorld.pwn(407) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Here's the line

Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
	return 1;
}

CMD:hesoyam(playerid,params[]);
GivePlayerMoney(playerid, 25000);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0x7CFC00AA, "Cheat Activated!Have fun!");
return 1;

CMD:baguvix(playerid,params[]);
SetPlayerHealth(playerid, 200000000)
SendClientMessage(playerid, 0x7CFC00AA, "Cheat Activated!Have fun!");

CMD:weaponset(playerid,params[]);
GivePlayerWeapon(playerid, 24, 5000);
GivePlayerWeapon(playerid, 27, 5000);
GivePlayerWeapon(playerid, 31, 5000);
GivePlayerWeapon(playerid, 33, 5000);
GivePlayerWeapon(playerid, 29, 5000);
SendClientMessage(playerid, 0x7CFC00AA, "Weapon set has been spawned!Have fun!");
return 1;

CMD:minigun(playerid,params[]);
GivePlayerWeapon(playerid, 34, 200000);
SendClientMessage(playerid, 0x7CFC00AA, "Minigun has been spawned!Have fun!");
return 1;
Reply
#2

try this and it may work

pawn Код:
CMD:hesoyam(playerid,params[])
{
    GivePlayerMoney(playerid, 25000);
    SetPlayerArmour(playerid, 100);
    SetPlayerHealth(playerid, 100);
    SendClientMessage(playerid, 0x7CFC00AA, "Cheat Activated!Have fun!");
    return 1;
}

CMD:baguvix(playerid,params[])
{
    SetPlayerHealth(playerid, 200000000);
    SendClientMessage(playerid, 0x7CFC00AA, "Cheat Activated!Have fun!");
    return 1;
}

CMD:weaponset(playerid,params[])
{
    GivePlayerWeapon(playerid, 24, 5000);
    GivePlayerWeapon(playerid, 27, 5000);
    GivePlayerWeapon(playerid, 31, 5000);
    GivePlayerWeapon(playerid, 33, 5000);
    GivePlayerWeapon(playerid, 29, 5000);
    SendClientMessage(playerid, 0x7CFC00AA, "Weapon set has been spawned!Have fun!");
    return 1;
}

CMD:minigun(playerid,params[])
{
    GivePlayerWeapon(playerid, 34, 200000);
    SendClientMessage(playerid, 0x7CFC00AA, "Minigun has been spawned!Have fun!");
    return 1;
}
Reply
#3

CMD:hesoyam(playerid,params[]);
Should be
CMD:hesoyam(playerid,params[])
Remove ;
Reply
#4

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
CMD:hesoyam(playerid,params[]);
Should be
CMD:hesoyam(playerid,params[])
Remove ;
And The Brackets??
Reply
#5

Oh okay..I'm new to scripting..


EDIT:Still the same buddy..
Reply
#6

pawn Код:
CMD:hesoyam(playerid,params[])
{
  GivePlayerMoney(playerid, 25000);
  SetPlayerArmour(playerid, 100);
  SetPlayerHealth(playerid, 100);
  SendClientMessage(playerid, 0x7CFC00AA, "Cheat Activated!Have fun!");
  return 1;
}
CMD:baguvix(playerid,params[])
{
  SetPlayerHealth(playerid, 200000000);
  SendClientMessage(playerid, 0x7CFC00AA, "Cheat Activated!Have fun!");
  return 1;
}

CMD:weaponset(playerid,params[])
{
  GivePlayerWeapon(playerid, 24, 5000);
  GivePlayerWeapon(playerid, 27, 5000);
  GivePlayerWeapon(playerid, 31, 5000);
  GivePlayerWeapon(playerid, 33, 5000);
  GivePlayerWeapon(playerid, 29, 5000);
  SendClientMessage(playerid, 0x7CFC00AA, "Weapon set has been spawned!Have fun!");
  return 1;
}
CMD:minigun(playerid,params[])
{
  GivePlayerWeapon(playerid, 34, 200000);
  SendClientMessage(playerid, 0x7CFC00AA, "Minigun has been spawned!Have fun!");
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)