Need Help OnPlayerConnect
#1

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
Reply
#2

Comment Please
Reply
#3

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

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

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)