error 035: argument type mismatch - 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)
+--- Thread: error 035: argument type mismatch (
/showthread.php?tid=636358)
error 035: argument type mismatch -
DavidGravelli - 25.06.2017
C:\Users\Chelsea\Desktop\iwrp\iwrp.pwn(613) : error 035: argument type mismatch (argument 3)
pawn Код:
stock NameL(playerid)
{
//new pName[MAX_PLAYER_NAME];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, "CharUsername",name ,MAX_PLAYER_NAME);
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
Re: error 035: argument type mismatch -
HoussemGaming - 25.06.2017
Код:
GetPlayerName(playerid, "CharUsername",name ,MAX_PLAYER_NAME);
It must be 3 arguments.
mean it must be
Код:
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
Re: error 035: argument type mismatch -
DavidGravelli - 25.06.2017
mate im using WCRP script so if i remove CharUsernam it will show the accountname not the charactername
Re: error 035: argument type mismatch -
Vince - 25.06.2017
And all of use here are familiar with each and every script ever released on this forum ... Is GetPlayerName overloaded or not?
Re: error 035: argument type mismatch -
DavidGravelli - 25.06.2017
C:\Users\Chelsea\Desktop\iwrp\iwrp.pwn(613) : error 035: argument type mismatch (argument 3)
Lines: 308 to 319
pawn Код:
stock NameL(playerid)
{
//new pName[MAX_PLAYER_NAME];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, "CharUsername",name,MAX_PLAYER_NAME);
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
pawn Код:
stock NameL(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, "CharUsername",name ,MAX_PLAYER_NAME);
//GetPlayerName(playerid, "CharUsername",name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
Tried to do this and its not working
Re: error 035: argument type mismatch -
Dayrion - 25.06.2017
This is working perfectly...
PHP код:
main()
{
new name[] = "Jina_Sawyers";
for(new i; i < sizeof(name); i++)
{
if(name[i] == '_')
name[i] = ' ';
}
printf("%s", name);
}