Server Script help - 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)
+--- Thread: Server Script help (
/showthread.php?tid=299278)
Server Script help -
dan007 - 25.11.2011
Hello Guys and Girls
I'm Also wanted you to know that I'm not sure where this should go So if this isn't in the Right place I'm Sorry
Anyway I'm working on a Server and it's Almost Complete But i Cant Figure out how i can Fix this Part of my Script I've been trying to fix it for 2 months.
Pawno line 84 : error 029: invalid expression, assumed zero
Pawno line 84 : error 017: undefined symbol "playerid"
Pawno line 84 : error 029: invalid expression, assumed zero
Pawno line 84 : fatal error 107: too many error messages on one line
And here's the Code:
Код:
public OnPlayerConnect(playerid)"Welcome"(playerid)
and from line 83 to 85
Код:
83{
84public OnPlayerConnect(playerid)"Welcome"(playerid)
85{
i cant figure it out please help me out Guys and Girls
please Reply if you can help me out.
__________________________________________________ ____________________________________________
Also i'm say again I'm sorry if this is not in the Right place
Re: Server Script help -
Mr_Scripter - 25.11.2011
Lol wtf you doing?
Re: Server Script help -
Joe Staff - 25.11.2011
Nothing about that code looks anything remotely close to actual pawn code.
The princess is in another castle
Re: Server Script help -
dan007 - 25.11.2011
whats wrong with my Post

??
Re: Server Script help -
Mr_Scripter - 25.11.2011
pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_RED, "Welcome");
return 1;
}
Re: Server Script help -
dan007 - 25.11.2011
F**k hate this i Changed a Code line and before i did that i had 4 errors now i got 26 -_-
Sometimes i just wanna give up
Re: Server Script help -
Mr_Scripter - 25.11.2011
the 26 errors are Better then 4 ..
when you have 26 erros than you haven't put one more closing bracket } you forgot it somewhere in ur script
Re: Server Script help -
[MG]Dimi - 25.11.2011
Quote:
Originally Posted by Mr_Scripter
pawn Код:
public OnPlayerConnect(playerid) { SendClientMessageToAll(playerid,COLOR_RED, "Welcome"); return 1; }
|
ROFL. Send message to all but playerid?
PHP код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xFF0000FF, "Welcome");
return 1;
}
Re: Server Script help -
ricardo178 - 25.11.2011
Quote:
Originally Posted by Mr_Scripter
pawn Код:
public OnPlayerConnect(playerid) { SendClientMessageToAll(playerid,COLOR_RED, "Welcome"); return 1; }
|
Just a correction...
pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,COLOR_RED, "Welcome");
return 1;
}
Re: Server Script help -
Mr_Scripter - 25.11.2011
Quote:
Originally Posted by [MG]Dimi
ROFL. Send message to all but playerid?
PHP код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xFF0000FF, "Welcome");
return 1;
}
|
oops my bad... i don't need "ToAll" thanks ... big fail..
* Mr_Scripter Runs