Can Someone Fix This
#1

this is the code:
Quote:

public OnPlayerConnect(playerid)
{
new string[64],pName[MAX_PLAYER_NAME];
GetPlayerName,(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"%s has joined the server.Welcome!",pName);
SendClientMessageToAll(0xFFFFFFAA,string);
return 1;
}

I get error message when i compile this.can plz someone tell me what did i do wrong?

this is the error:
Quote:

C:\Users\Jot\Desktop\Test.pwn(112) : error 076: syntax error in the expression, or invalid function call
C:\Users\Jot\Desktop\Test.pwn(112) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#2

GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
Reply
#3

Quote:
Originally Posted by RoCK'N'Rolla
Посмотреть сообщение
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
Still same error
Reply
#4

problem fixed.
Reply
#5

Thanks To Me :]
Reply
#6

thx HayZatic
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)