C:\Users\Matt\Desktop\truckingph\gamemodes\truckingph.pwn(4399) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success)
{
new string[500];
format(string,sizeof(string),"PH-BOT: This command has not founded in System %s(%d), Please use /cmds(/commands) or /help For more Info.",GetPName(playerid));
SendClientMessage(playerid, lred, string);
}
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success)
{
new string[500];
format(string,sizeof(string),"PH-BOT: This command has not founded in System %s ---> (%d) <----, Please use /cmds(/commands) or /help For more Info.",GetPName(playerid));
SendClientMessage(playerid, lred, string);
}
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if (!success)
{
new string[150];
format(string,sizeof(string),"PH-BOT: This command has not founded in System %s, Please use /cmds(/commands) or /help For more Info.",GetPName(playerid));
SendClientMessage(playerid, lred, string);
}
return 1;
}
which fcken line is it ? im guessing u dont have lred defined correctly or some shit
|
can you show us what your GetRPName(playerid) looks like? When you PMed me, it had two params so it's most likely a param issue.
|
GetPName(playerid))
We know you used it like that, but what is the actual code behind that? Paste the full function.
|
Lol, what? He has it defined, if he hadn't it have shown a undefined error. Besides, you should probably try and get rid of your disgusting attitude before you end up getting banned.
@OP: The format line is alright, although the string size [500] should NOT be 500 unless you use it in a dialog. Your text is 99, and assuming GetRPName returns a name, we end up with 123 since MAX_PLAYER_NAME is 24. Change the string size to 125 and it'll be fine. For your error, can you show us what your GetRPName(playerid) looks like? When you PMed me, it had two params so it's most likely a param issue. EDIT: @Adityz The compiler can't detect mistakes that are done in "" tags, so that is not the issue. It only adds on to what I said above, which is a param issue with the function he is trying to get information from. |
#define lred "{FF0000}" //Or whatever you have here...
#define lred 0xFF0000FF //As above