18.05.2016, 02:46
I am making this cmd so that VIPS can talk to each other:-
But I am getting this error:-
Kindly tell me how to fix it
PHP код:
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;
}
PHP код:
D:\farhan\ARP.pwn(1293) : error 035: argument type mismatch (argument 1)