#1

the code is :
INI_WriteString(File,"Name",GetPlayerName(playerid , playername, sizeof(playername)));

i got this error:
C:\Users\10\Desktop\mamamssvf\gamemodes\test.pwn(1 32) : error 035: argument type mismatch (argument 3)

can you help me ?
Reply
#2

That's not how getplayername works,
replace with this and notice the difference.
PHP Code:
GetPlayerName(playerid playernamesizeof(playername));
INI_WriteString(File,"Name",playername); 
Reply
#3

it works.
Reply
#4

Quote:
Originally Posted by Imbalo
View Post
it works.
Yeah next time when you use getplayername declare the variable then save the player's name in that variable through getplayername then use that variable in the functions you're scripting don't use the actual getplayername function into another function.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)