SA-MP Forums Archive
Need help again - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help again (/showthread.php?tid=338833)



Need help again - Derek_Westbrook - 01.05.2012

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;



Re: Need help again - Torus - 01.05.2012

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;
}



Re: Need help again - newbienoob - 01.05.2012

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


Re: Need help again - Torus - 01.05.2012

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


Re: Need help again - Derek_Westbrook - 01.05.2012

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


EDIT:Still the same buddy..


Re: Need help again - Mark™ - 01.05.2012

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;
}