Can Someone Fix This - 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: Can Someone Fix This (
/showthread.php?tid=261759)
Can Someone Fix This -
jot16 - 14.06.2011
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.
|
Re: Can Someone Fix This -
RoCK'N'Rolla - 14.06.2011
GetPlayerName(playerid,p
Name,MAX_PLAYER_NAME);
Re: Can Someone Fix This -
jot16 - 14.06.2011
Quote:
Originally Posted by RoCK'N'Rolla
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
|
Still same error
Re: Can Someone Fix This -
jot16 - 15.06.2011
problem fixed.
Re: Can Someone Fix This -
HayZatic - 15.06.2011
Thanks To Me :]
Re: Can Someone Fix This -
jot16 - 15.06.2011
thx HayZatic