SA-MP Forums Archive
argument 2 - 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: argument 2 (/showthread.php?tid=613155)



argument 2 - Miller007 - 25.07.2016

picture share


PHP код:
new
        
string[128],
        
Name[128]
    ;
     
GetPlayerName(playerid,Name,sizeof(Name));
    
format(stringsizeof(string), "7[SPAWN] %s(%d) Has Spawned",Name,playerid);
    
IRC_GroupSay(gGroupIDIRC_CHANNEL,string); 



Re: argument 2 - CrazyPerry - 25.07.2016

new string[128];
new Name[128];
try to put it on top


Re: argument 2 - Konstantinos - 25.07.2016

By reading the errors given above line 13527, "Name" symbol has been declared as global variable. I couldn't reproduce the argument type mismatch error by renaming the variable's name (in line 13525) to something else will most likely fix it.


Re: argument 2 - Miller007 - 25.07.2016

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
By reading the errors given above line 13527, "Name" symbol has been declared as global variable. I couldn't reproduce the argument type mismatch error by renaming the variable's name (in line 13525) to something else will most likely fix it.
thnx