SA-MP Forums Archive
[SOLVED]help plz - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED]help plz (/showthread.php?tid=83117)



[SOLVED]help plz - gpclan - 22.06.2009

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.



Re: help plz - gpclan - 22.06.2009

anyone


Re: help plz - Grim_ - 22.06.2009

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.


Re: help plz - gpclan - 22.06.2009

like what more code??


Re: help plz - Grim_ - 22.06.2009

The code where the errors occur..


Re: help plz - gpclan - 22.06.2009

nvm i solved it