Help cant 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: Help cant fix this (
/showthread.php?tid=257935)
Help cant fix this -
[Rafael44p] - 28.05.2011
Hi there
So my problem is i cant solve this i keep getting this error
Код:
.......\Teleports.pwn(124) : error 030: compound statement not closed at the end of file (started at line 58)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
and here line 55/64
Код:
55. public OnPlayerCommandText(playerid,cmdtext[])
56.
57. {
58. if (!strcmp("/UTeles",cmdtext,true))
59. {
60. SendClientMessage(playerid, 0x99FFFFAA, "hello");
61. SendClientMessage(playerid, 0x99FFFFAA, "hello")
62. SendClientMessage(playerid, 0x99FFFFAA, "hello")
63. return 1;
64. }
and line 124 dond exists.. but this are the last 4 lines
Код:
119. return 1;
120. }
121. return 0;
122. }
what did i do wrong ?
Re: Help cant fix this -
BigETI - 28.05.2011
Seriosly what's about adding some semicolons after those funcs?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/UTeles", cmdtext, true))
{
SendClientMessage(playerid, 0x99FFFFAA, "hello");
SendClientMessage(playerid, 0x99FFFFAA, "hello");
SendClientMessage(playerid, 0x99FFFFAA, "hello");
return 1;
}
return 0;
}
(),-* /facepalm
Re: Help cant fix this -
[Rafael44p] - 28.05.2011
lol thx didnt saw that...