Help guys!
#1

Код:
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 ?
Reply
#2

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`
Reply
#3

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 }
Reply
#4

Oh guys, you are good for scripting Thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)