Help me with this!
#1

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!!
Reply
#2

plz anyone help me
Reply
#3

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

You forgot about the color.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)