public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Opengate", cmdtext, true, 10) == 0) { moveobject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 0, 359.49487304688, 269.87365722656); // change positions where u want to move gates } if(strcmp("/Closegate", true) == 0) // { moveobject(968, 1544.7027587891, -1630.9697265625, 13.145315170288, 0, 269.17498779297, 269.87536621094); // return 1; } return 0; } |
C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(135) : error 017: undefined symbol "moveobject" C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(13 : error 035: argument type mismatch (argument 2) C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(140) : error 017: undefined symbol "moveobject" C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(142) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. |
C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(94) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(94) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(97) : error 035: argument type mismatch (argument 2) C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(99) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(99) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(101) : warning 217: loose indentation C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(103) : warning 217: loose indentation C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(105) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Opengate", cmdtext, true, 10) == 0) { MoveObject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 0, 359.49487304688, 269.87365722656); // change positions where u want to move gates } if(strcmp("/Closegate", true) == 0) // { MoveObject(968, 1544.7027587891, -1630.9697265625, 13.145315170288, 0, 269.17498779297, 269.87536621094); // return 1; } return 1; } return 0; } |
Note: i only Added What you said in the script, Clean Page, and then this text, am i wrong? i havent changed anything but this. |
C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(93) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(93) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(95) : warning 225: unreachable code C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(95) : warning 217: loose indentation C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(95) : error 035: argument type mismatch (argument 2) C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(97) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(97) : warning 202: number of arguments does not match definition C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(9 : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/opengate", cmdtext, true, 10) == 0) { MoveObject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 0, 359.49487304688, 269.87365722656); return 1; if(strcmp("/Closegate", true) == 0) // { MoveObject(968, 1544.7027587891, -1630.9697265625, 13.145315170288, 0, 269.17498779297, 269.87536621094); return 1; } } return 0; } |
Originally Posted by [LSR
State_Trooper ]
edited my post, try again |
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed)
Originally Posted by shotyoudie
Quote:
Код:
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed) |
C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(96) : error 001: expected token: ";", but found "return" C:\my stuff\my games\GTA san nadreas\GTA San Andreas\SAMP\gamemodes\E Gate 1.pwn(96) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/OpenGate", cmdtext, true, 10) == 0) { MoveObject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 1) return 1; } return 0; } |
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/OpenGate", cmdtext, true, 10) == 0) { MoveObject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 1); return 1; } return 0; } |
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/OpenGate", cmdtext, true, 10) == 0) { MoveObject(968, 1544.70703125, -1630.7634277344, 13.095315933228, 1); return 1; } return 0; } |
Originally Posted by anumaz
Quote:
Try this. |