Need Help OnPlayerConnect - 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: Need Help OnPlayerConnect (
/showthread.php?tid=275359)
Need Help OnPlayerConnect -
lyrics - 09.08.2011
I need Help on Player Connect

I want when i connect using my username - [SP]Mr.Kakashi[WP]
I want OnPlayerConnect theres a message that will send to all like [XS-OWNER]:[SP]Mr.Kakashi[WP] Blahblahblah
Then The Message will sent something to the owner like "Welcome Server Owner!"
Heres My Code On PlayerConnect:
pawn Код:
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
pawn Код:
if(!strcmp(pName, "[SP]Mr.Kakashi[WP]", true))
{
SendClientMessageToAll(playerid,COLOR_RED, "[XS-OWNER]:[SP]Mr.Kakashi[WP] Has Join on XS Server");
SendClientMessage(playerid,COLOR_RED, "Welcome Back! Server Owner");
return 1;
}
But it gives me a 1 error
Код HTML:
H:\GTA San Andreas\SAMP Server\gamemodes\XtremeKakashiV2.pwn(328) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
I hope you help me again
Re: Need Help OnPlayerConnect -
lyrics - 09.08.2011
Comment Please
AW: Need Help OnPlayerConnect -
Nero_3D - 09.08.2011
Dont be impatient and read the forum rules [SA-MP Forums > SA-MP > General >
FORUM RULES]
Its
pawn Код:
SendClientMessageToAll(COLOR_RED, "[XS-OWNER]:[SP]Mr.Kakashi[WP] Has Join on XS Server");
Re: AW: Need Help OnPlayerConnect -
lyrics - 09.08.2011
Quote:
Originally Posted by Nero_3D
Dont be impacient and read the forum rules [SA-MP Forums > SA-MP > General > FORUM RULES]
Its
pawn Код:
SendClientMessageToAll(COLOR_RED, "[XS-OWNER]:[SP]Mr.Kakashi[WP] Has Join on XS Server");
|
Thanks
Re: Need Help OnPlayerConnect -
Sascha - 09.08.2011
pawn Код:
SendClientMessageToAll(playerid,COLOR_RED, "[XS-OWNER]:[SP]Mr.Kakashi[WP] Has Join on XS Server");
has to be
pawn Код:
SendClientMessageToAll(COLOR_RED, "[XS-OWNER]:[SP]Mr.Kakashi[WP] Has Join on XS Server");
you guys should start reading the errors... it names what is wrong and it also names the line.. so if you don't understand the error, read the line again (100 times) and try to check what could be wrong..
edit: oh didn't see nero's answer...