[SOLVED]help plz
#1

ok heres my problem i made a fs and i did the moveobject thing works great but in my gamemode i do it gives me errors heres my code for my move object


Код:
new admin;
admin = CreateObject( 972 , 2963.851074 , -1089.600952 , 10.086677 , 0.000000 , 0.000000 , 534.000000 );
if(strcmp(cmdtext, "/adminbasedown", true) == 0)
  {
    MoveObject(admin, 2963.851074 , -1089.600952 , 10.086677 2.00);
    return 1;
  }

	if(strcmp(cmdtext, "/adminbaseup", true) == 0)
  {
    MoveObject(admin, 2962.0051,-1091.6605,21.2340 2.00);
    return 1;
  }

and heres the errors


C:\Users\emergency account\Desktop\tokyo drift server\gamemodes\tokyofinal.pwn(1442) : error 001: expected token: ",", but found "-rational value-"
C:\Users\emergency account\Desktop\tokyo drift server\gamemodes\tokyofinal.pwn(1442) : warning 215: expression has no effect
C:\Users\emergency account\Desktop\tokyo drift server\gamemodes\tokyofinal.pwn(1442) : error 001: expected token: ";", but found ")"
C:\Users\emergency account\Desktop\tokyo drift server\gamemodes\tokyofinal.pwn(1442) : error 029: invalid expression, assumed zero
C:\Users\emergency account\Desktop\tokyo drift server\gamemodes\tokyofinal.pwn(1442) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

anyone
Reply
#3

In your MoveObject function,you're not using commas to seperate the Z coordinate and the speed.

Also we'll need to see more code to fix the problems below.
Reply
#4

like what more code??
Reply
#5

The code where the errors occur..
Reply
#6

nvm i solved it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)