#1

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;
}
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)