SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - 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: error 035: argument type mismatch (argument 1) (/showthread.php?tid=389090)



error 035: argument type mismatch (argument 1) - BaranHyrn - 31.10.2012

Код:
Error;

c-rp.pwn(715) : error 035: argument type mismatch (argument 1)
Line:
Код:
if(strcmp(AracKaydetInt(idcar,"sahip",name,true))
Complete:
Код:
	if(strcmp(AracKaydetInt(idcar,"sahip",name,true))
	{
	SendClientMessage(playerid, COLOR_GREY,"Satmaya Зalıştığınız Araз Sizin Değil, Sadece Kendi Aracınızı Satabilirsiniz.");
	return 1;
	}
Help please.


AW: error 035: argument type mismatch (argument 1) - Skimmer - 31.10.2012

Can you show me the stock or public AracKaydetInt ?

try this.

pawn Код:
if(strcmp(AracKaydetInt(idcar,"sahip"),name,true))
{
    SendClientMessage(playerid, COLOR_GREY,"Satmaya Зalistiginiz Araз Sizin Degil, Sadece Kendi Aracinizi Satabilirsiniz.");
    return 1;
}



Re: error 035: argument type mismatch (argument 1) - BaranHyrn - 31.10.2012

Код:
public AracKaydetInt(vehicleid, sutun[], deger)
{
    new string[128];
	format(string, sizeof(string), "UPDATE `araclar` SET `%s` = '%d' WHERE `AracID` = '%d'", sutun, deger, vehicleid);
    mysql_query(string);
}