Help guys! - 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 guys! (
/showthread.php?tid=215416)
Help guys! -
New Ilyass - 23.01.2011
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1990.0769,138.1512,27.5391);
SetPlayerInterior(playerid, 0);
if (strcmp("/spawn", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1481.3373,-1740.7203,13.5469);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
C:\Documents and Settings\Sanaв\Bureau\samp03csvr_win32\gamemodes\l sgw.pwn(142) : error 030: compound statement not closed at the end of file (started at line 129)
And i want know how to do a teleport with Vehicle ?
Re: Help guys! -
Not available - 23.01.2011
You forgot a }.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1990.0769,138.1512,27.5391);
SetPlayerInterior(playerid, 0);
return 1;
}
if (strcmp("/spawn", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1481.3373,-1740.7203,13.5469);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
Note: You also forgot to return the function `/sf`
Re: Help guys! -
thimo - 23.01.2011
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1990.0769,138.1512,27.5391);
SetPlayerInterior(playerid, 0);
}
if (strcmp("/spawn", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1481.3373,-1740.7203,13.5469);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
Try that you forgot a }
Re: Help guys! -
New Ilyass - 23.01.2011
Oh guys, you are good for scripting Thx