SA-MP Forums Archive
Little help please?! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little help please?! (/showthread.php?tid=73714)



Little help please?! - karla - 17.04.2009

Hi my friends.
I'm pretty newb on scripting, so..
What i must do, when i get error like this??

pawn Код:
error 017: undefined symbol "name"



Re: Little help please?! - karla - 17.04.2009

Someone please help me, i need that


Re: Little help please?! - linxx - 17.04.2009

Quote:
Originally Posted by karla
Hi my friends.
I'm pretty newb on scripting, so..
What i must do, when i get error like this??

pawn Код:
error 017: undefined symbol "name"
ok well what this is saying is that you havent defined name post your code let me have a look and highlight the line for me


Re: Little help please?! - karla - 17.04.2009

You mean this line, where the error is?
Here u are!
pawn Код:
format(code, 128, "\t\t\t\t<td>%d</td>\n", GetPlayerIp(playerid, name[], len));
                fwrite(tmp, code);



Re: Little help please?! - linxx - 17.04.2009

ok hun i think i no what your trying to do so first add the name stock and compile. it that works you wont need the ip stock but if you get undefined sybol ip ad the second stock aswell i hope this helps

Quote:

stock PlayerName(playerid)
{
new name[255];
GetPlayerName(playerid, name, 255);
return name;
}

//----------------------[ PlayerIP() ] -------------------------------
stock PlayerIP(playerid)
{
new ip[16];
GetPlayerIp(playerid, ip, 16);
return ip;
}




Re: Little help please?! - karla - 17.04.2009

Quote:
Originally Posted by Krytan
ok hun i think i no what your trying to do so first add the name stock and compile. it that works you wont need the ip stock but if you get undefined sybol ip ad the second stock aswell i hope this helps

Quote:

stock PlayerName(playerid)
{
new name[255];
GetPlayerName(playerid, name, 255);
return name;
}

//----------------------[ PlayerIP() ] -------------------------------
stock PlayerIP(playerid)
{
new ip[16];
GetPlayerIp(playerid, ip, 16);
return ip;
}

Nothing happened