SA-MP Forums Archive
Got some errors - 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: Got some errors (/showthread.php?tid=647836)



Got some errors - Filbert - 12.01.2018

PHP код:
GetName(playerid)
{
    new 
pnameid[24];
    
GetPlayerName(playerid,pnameid,sizeof(pnameid)); <============ this is the error line
    
return pnameid;

Код:
D:\Data\GTA\JTFR\Gamemodes\JTFR.pwn(28500) : error 035: argument type mismatch (argument 2)
D:\Data\GTA\JTFR\Gamemodes\JTFR.pwn(28500) : error 035: argument type mismatch (argument 2)



Re: Got some errors - RowdyrideR - 12.01.2018

Код:
stock GetName(playerid) {
  new name[24];
  GetPlayerName(playerid, name, 24);
  return name;
}



Re: Got some errors - jasperschellekens - 12.01.2018

Quote:
Originally Posted by Filbert
Посмотреть сообщение
PHP код:
GetName(playerid)
{
    new 
pnameid[24];
    
GetPlayerName(playerid,pnameid,sizeof(pnameid)); <============ this is the error line
    
return pnameid;

Код:
D:\Data\GTA\JTFR\Gamemodes\JTFR.pwn(28500) : error 035: argument type mismatch (argument 2)
D:\Data\GTA\JTFR\Gamemodes\JTFR.pwn(28500) : error 035: argument type mismatch (argument 2)
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));