Error help plsease!
#1

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_GREYstring); 
Код 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.
Reply
#2

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;
}
Reply
#3

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);
Reply
#4

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;
}
Reply
#5

Define the players name and the string in the "new ..... ;"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)