error 035: argument type mismatch (argument 2)
#1

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

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");
Reply
#3

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

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

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.
}
Reply
#6

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

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

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

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)