undefined simbol
#1

hi i get one error while compiling a pm command
Quote:

(391) : error 017: undefined symbol "params"

PHP код:
if(strcmp(cmd"/pm"true) == 0)
{
       new 
str[256], str2[256], idName1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME];
    if(
sscanf(params"us"idstr2)) EDITError is this line
    
{
        
SendClientMessage(playerid0xFF0000FF"Usage: /pm <id> <message>");
        return 
1;
    }
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xFF0000FF"ERROR: Player not connected");
    if(
playerid != id) return SendClientMessage(playerid0xFF0000FF"ERROR: You cannot pm yourself!");
    {
        
GetPlayerName(playeridName1sizeof(Name1));
        
GetPlayerName(idName2sizeof(Name2));
        
format(strsizeof(str), "PM To %s(ID %d): %s"Name2idstr2);
        
SendClientMessage(playerid0xFF0000FFstr);
        
format(strsizeof(str), "PM From %s(ID %d): %s"Name1playeridstr2);
        
SendClientMessage(id0xFF0000FFstr);
    }
    return 
1;

here is my code i make it from a toturial and now i cant fix this error i search on forums and nothing if someone can help im apreciate its a small code
Reply


Messages In This Thread
undefined simbol - by HardMode - 08.09.2010, 16:29
Re: undefined simbol - by LarzI - 08.09.2010, 16:31
Re: undefined simbol - by Mean - 08.09.2010, 16:32
Re: undefined simbol - by Lenny the Cup - 08.09.2010, 16:36
Re: undefined simbol - by HardMode - 08.09.2010, 16:40
Re: undefined simbol - by LarzI - 08.09.2010, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)