SA-MP Forums Archive
error 035: argument type mismatch (argument 2) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 035: argument type mismatch (argument 2) (/showthread.php?tid=205827)



error 035: argument type mismatch (argument 2)[edited] - new topic - RPF - 02.01.2011

When i try to upload a zip folder into scriptfiles it doesnt let me upload folders,help ( serverffs )


Re: error 035: argument type mismatch (argument 2) - Alex_Valde - 02.01.2011

I'm not sure what did you do in your SendPlayerMessageToPlayer function, but I guess you could do it using SendClientMessage too.
(Correct me if I'm wrong).

pawn Код:
if(strcmp(cmdtext, "/help", true)==0) return SendClientMessage(playerid, YOURCOLOR, "This is a test server,we only have /rf and /kill scripted manually");



Re: error 035: argument type mismatch (argument 2) - StreetGT - 02.01.2011

if (strcmp(cmdtext, "/help", true) == 0)
{
SendClientMessageToPlayer(playerid,COLOR_GAY,"This is a test server,we only have /rf and /kill scripted manually");
return 1;
}


Re: error 035: argument type mismatch (argument 2) - HyperZ - 02.01.2011

pawn Код:
if (strcmp("/help", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0xFF9900AA, "This is a test server,we only have /rf and /kill scripted manually");
    return 1;
}



Re: error 035: argument type mismatch (argument 2) - Toreno - 02.01.2011

Just use SendClientMessage(playerid, COLOR, "Message");
Example:
On top of your script...
pawn Код:
#define COLOR_WHITE 0xFFFFFFAA
Then inside on player command text...
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/help",cmdtext ,true ,5) == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "This is a test server,we only have /rf and /kill scripted manually");
        return 1;
    }
    return 0; // Returns : "SERVER: Uknown command" else nothing.
}



Re: error 035: argument type mismatch (argument 2) - RPF - 02.01.2011

Quote:
Originally Posted by Alex_Valde
Посмотреть сообщение
I'm not sure what did you do in your SendPlayerMessageToPlayer function, but I guess you could do it using SendClientMessage too.
(Correct me if I'm wrong).

pawn Код:
if(strcmp(cmdtext, "/help", true)==0) return SendClientMessage(playerid, YOURCOLOR, "This is a test server,we only have /rf and /kill scripted manually");
I thought that will help,but it said the same thing with that. And btw,color doesnt work


Re: error 035: argument type mismatch (argument 2) - HyperZ - 02.01.2011

Quote:
Originally Posted by RPF
Посмотреть сообщение
I thought that will help,but it said the same thing with that. And btw,color doesnt work
Replace this man:
pawn Код:
if (strcmp("/help", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0xFF9900AA, "This is a test server,we only have /rf and /kill scripted manually");
    return 1;
}



Re: error 035: argument type mismatch (argument 2) - Toreno - 02.01.2011

Quote:
Originally Posted by RPF
Посмотреть сообщение
I thought that will help,but it said the same thing with that. And btw,color doesnt work
I wrote you to add a #define COLOR_WHITE, look up!

Quote:
Originally Posted by Clive
Посмотреть сообщение
Replace this man:
pawn Код:
if (strcmp("/help", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0xFF9900AA, "This is a test server,we only have /rf and /kill scripted manually");
    return 1;
}
He needs to understand how It works, explain instead of give him the whole code.


Re: error 035: argument type mismatch (argument 2) - RPF - 02.01.2011

Quote:
Originally Posted by Clive
Посмотреть сообщение
Replace this man:
pawn Код:
if (strcmp("/help", cmdtext, true, 10) == 0)
{
    SendClientMessage(playerid, 0xFF9900AA, "This is a test server,we only have /rf and /kill scripted manually");
    return 1;
}
Thanks


Re: error 035: argument type mismatch (argument 2) - RPF - 02.01.2011

Btw,do you know a good login/admin script for 0.3c?