
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.
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;
}
else
{
SendClientMessage(playerid, "you don't have enough money to buy this item");
}
|
SendClientMessage has 3 arguments(playerid,color,message).
You forgot about the color. |