#1

hey i get these errors
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : warning 202: number of arguments does not match definition
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : error 001: expected token: ",", but found ";"
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : fatal error 107: too many error messages on one line

the line is this one:
559- SetPlayerInterior(playerid,0)
560- SetPlayerPos(playerid, 1974.2731, 972.1260, 21.8504,);
561- return 1;

i dk what im doing wrong please help
Reply
#2

SetPlayerInterior(playerid,0)

You're missing the ";"

SetPlayerInterior(playerid,0);
Reply
#3

lol, this was easy.
Change
pawn Код:
SetPlayerPos(playerid, 1974.2731, 972.1260, 21.8504,);
to
pawn Код:
SetPlayerPos(playerid, 1974.2731, 972.1260, 21.8504);
Only had to remove that ","
So it should work now

EDIT: And do what JaTochNietDan said too
Reply
#4

Quote:

hey i get these errors
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : warning 202: number of arguments does not match definition
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : error 001: expected token: ",", but found ";"
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(560) : fatal error 107: too many error messages on one line

the line is this one:
559- SetPlayerInterior(playerid,0)
560- SetPlayerPos(playerid, 1974.2731, 972.1260, 21.8504,);
561- return 1;

i dk what im doing wrong please help

Just change your code to this

pawn Код:
559- SetPlayerInterior(playerid,0);
560- SetPlayerPos(playerid, 1974.2731, 972.1260, 21.8504);
561- return 1;
Reply
#5

now 26 errors

Код:
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(571) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(574) : warning 217: loose indentation
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(574) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(574) : error 004: function "OnPlayerInfoChange" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(579) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(579) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(579) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(584) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(584) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(584) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(589) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(589) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(589) : error 004: function "OnPlayerStateChange" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(594) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(594) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(594) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(599) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(599) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(599) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(604) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(604) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(604) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(609) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(609) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(609) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(614) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(614) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(614) : error 004: function "OnRconCommand" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(619) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(619) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(619) : error 004: function "OnObjectMoved" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(624) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(624) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(624) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(629) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(629) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(629) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(634) : warning 225: unreachable code
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(634) : error 029: invalid expression, assumed zero
C:\Users\Andrй Salgado\Desktop\samp server\gamemodes\andre.pwn(634) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
Код:
public OnPlayerInfoChange(playerid)
{
	return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
	return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
	return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
	return 1;
}

public OnRconCommand(cmd[])
{
	return 1;
}

public OnObjectMoved(objectid)
{
	return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
	return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
	return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

public OnPlayerExitedMenu(playerid)
{
	return 1;
}
[/code[
Reply
#6

Did you also add those numbers ?
559 ,660 and 561 in the code ? If yes please remove them
Reply
#7

if i added those numbers where i don't think i added those
Reply
#8

ok give me the complete code once please .. ALL
Reply
#9

here it is

http://pastebin.com/m4e58297e
Reply
#10

pawn Код:
if (!strcmp(cmdtext, "/drag", true))
    {
    SetPlayerInterior(playerid, 0);
      SetPlayerPos(playerid, 2080.7920,873.9595,7.1228);
        return 1;
 
        return 0;
}
This is the code in the pastebin

Chenge it to this

pawn Код:
if (!strcmp(cmdtext, "/drag", true))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2080.7920,873.9595,7.1228);

    return 1;
    }
No return 0; is needed

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)