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?