SA-MP Forums Archive
Help me with this! - 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: Help me with this! (/showthread.php?tid=656214)



Help me with this! - GameOvr - 10.07.2018

I'm a newbie..
==========
here's the error
Код:
C:\Users\User\Documents\SA-MP script files\samp windows server\samp037_svr_R2-1-1_win32\filterscripts\Untitled.pwn(41) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
here's the code

Код:
  if(dialogid == DIALOG_AMMU)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: if(GetPlayerMoney(playerid) >= 500)
                          {
                            GivePlayerWeapon(playerid, 24, 300);
                            GivePlayerMoney(playerid, -500);
                            GameTextForPlayer(playerid, "Thank You For Buying EGW Weapons", 5000, 5);
			   }
			   else
			   {
		           SendClientMessage(playerid, "you don't have enough money to buy this item");
			   }
           }
        }
        else return 1;
        return 1;
    }
plz guys tell me what is wrong here. it gives me the error when i put this one...
Код:
                                                else
					        {
						SendClientMessage(playerid, "you don't have enough money to buy this item");
						}
help!!


Re: Help me with this! - GameOvr - 10.07.2018

plz anyone help me


Re: Help me with this! - Rolux - 10.07.2018

SendClientMessage has 3 arguments(playerid,color,message).

You forgot about the color.


Re: Help me with this! - GameOvr - 10.07.2018

Quote:
Originally Posted by Rolux
Посмотреть сообщение
SendClientMessage has 3 arguments(playerid,color,message).

You forgot about the color.
oh my god! yeah i forgot thank you very much