SA-MP Forums Archive
Error - 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 (/showthread.php?tid=607308)



Error - K0P - 17.05.2016

I am getting this error,i am unable to fix it.


D:\michaelwcrp\WCRP.pwn(1293) : error 035: argument type mismatch (argument 1)

Код:
CMD:v(playerid, params[])
{
new Text[300];
if(GetPVarInt(playerid,"DonateRank") >= 1)
{
if(sscanf(params, "s[300]", Text)) return SendClientMessage(playerid, 0xFFFFFF, "USAGE: /v text");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPVarInt(i,"DonateRank") >= 1)
{
new str[350];
format(str, sizeof(str), "[VIP CHAT] %s Says: %s", GetName(playerid), Text);
SendClientMessage(i, 0xFFFFFF, str);
}
}
}
}
else SendClientMessage(playerid, 0xFFFFFF, "You dont have any donator rank");
return 1;
}



Re: Error - iKevin - 17.05.2016

I'd suggest you to make a custom stock function. I can give you an example of it and show you how to make it working.