Error help plsease! - 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 help plsease! (
/showthread.php?tid=554627)
Error help plsease! -
PrinXe - 04.01.2015
PHP код:
public OnPlayerConnect(playerid)
{
new mess[256],pmess[256],IP[256];
GetPlayerIp(playerid,IP,sizeof(IP));
format(mess,sizeof(mess),"%s has joined the server. Country: %s | IP Address: %s",GetPName(playerid),GetPlayerCountryName(playerid),IP);
printf(mess);
format(pmess,sizeof(pmess),"%s has joined the server from %s.",GetPName
SendClientMessageToAll(COLOR_GREY, string);
Код HTML:
These r Errors:
D:\IGC Build 01\samp 2.0 update\gamemodes\BUILD 01.pwn(1816) : error 017: undefined symbol "GetPName"
D:\IGC Build 01\samp 2.0 update\gamemodes\BUILD 01.pwn(1818) : error 017: undefined symbol "GetPName"
D:\IGC Build 01\samp 2.0 update\gamemodes\BUILD 01.pwn(1819) : error 017: undefined symbol "string"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Re: Error help plsease! -
HY - 04.01.2015
pawn Код:
public OnPlayerConnect(playerid)
{
new pmess[256],IP[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerIp(playerid,IP,sizeof(IP));
printf("%s has joined the server. Country: %s | IP Address: %s",name, GetPlayerCountryName(playerid),IP);
format(pmess,sizeof(pmess),"%s has joined the server from %s.", name, GetPlayerCountryName(playerid));
SendClientMessageToAll(COLOR_GREY, pmess);
return 1;
}
Re: Error help plsease! -
UltraScripter - 04.01.2015
pawn Код:
new string[128], GetPName[MAX_PLAYER_NAME];
GetPlayerName(playerid, GetPName, sizeof(GetPName));
format(mess,sizeof(mess),"%s has joined the server. Country: %s | IP Address: %s",GetPName,GetPlayerCountryName(playerid),IP);
printf(mess);
format(pmess,sizeof(pmess),"%s has joined the server from %s.",GetPName
SendClientMessageToAll(COLOR_GREY, string);
Re: Error help plsease! -
DoubleNicca - 16.09.2015
pawn Код:
public OnPlayerConnect(playerid)
{
new GetPName[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
GetPlayerName(playerid, GetPName, sizeof(GetPName));
new mess[256],pmess[256],IP[256];
GetPlayerIp(playerid,IP,sizeof(IP));
format(mess,sizeof(mess),"%s has joined the server. Country: %s | IP Address: %s",GetPName,GetPlayerCountryName(playerid),IP);
printf(mess);
format(pmess,sizeof(pmess),"%s has joined the server from %s.",GetPName);
SendClientMessageToAll(COLOR_GREY, string);
return 1;
}
Re: Error help plsease! -
saffierr - 16.09.2015
Define the players name and the string in the "new ..... ;"