MoveObject errors -
[KML]Dabug - 13.04.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
MoveObject(976, 0, 0, 10, 2.00 );
return 1;
if (strcmp("/nameoff", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
Heres the errors
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(303) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(303) : warning 217: loose indentation
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(312) : warning 217: loose indentation
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(314) : warning 217: loose indentation
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(314) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(314) : error 004: function "OnPlayerInfoChange" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(319) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(319) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(319) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(324) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(324) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(324) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(329) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(329) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(329) : error 004: function "OnPlayerStateChange" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(334) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(334) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(334) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(339) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(339) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(339) : error 004: function "OnPlayerLeaveCheckpoint" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(344) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(344) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(344) : error 004: function "OnPlayerEnterRaceCheckpoint" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(349) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(349) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(349) : error 004: function "OnPlayerLeaveRaceCheckpoint" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(354) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(354) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(354) : error 004: function "OnRconCommand" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(359) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(359) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(359) : error 004: function "OnObjectMoved" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(364) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(364) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(364) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(369) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(369) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(369) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(374) : warning 225: unreachable code
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(374) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(374) : error 004: function "OnPlayerSelectedMenuRow" is not implemented
Re: MoveObject errors -
MenaceX^ - 13.04.2009
[quote=[KML]Dabug ]
[PAWN]
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
MoveObject(976, 0, 0, 10, 2.00 );
return 1;
}
if (strcmp("/nameoff", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
Re: MoveObject errors -
[KML]Dabug - 13.04.2009
[quote=MenaceX^ ]
Quote:
Originally Posted by [KML
Dabug ]
[PAWN]
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
MoveObject(976, 0, 0, 10, 2.00 );
return 1;
}
if (strcmp("/nameoff", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
|
Thanks now it compiles but nothing happens when i do it heres the gate
And if you know how to fix it can u help me to make a command close it too
Re: MoveObject errors -
MenaceX^ - 13.04.2009
The Object doesn't have a varieble, you can't move it by it's objectid.
https://sampwiki.blast.hk/wiki/MoveObject
Re: MoveObject errors -
[KML]Dabug - 13.04.2009
}
obj = CreateObject(obj, 1812.209473, -1885.179932, 12.575973, 0.0000, 0.0000, 271.581
;
return 1;
}
2 invalid functions or declartions
Re: MoveObject errors -
Danut - 13.04.2009
MoveObject(obj,x,y,z,speed);