SA-MP Forums Archive
I need help please - 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: I need help please (/showthread.php?tid=195858)



I need help please - lsrgta - 03.12.2010

I really need some help with scripting, I'm from lsrgta, and I want to learn to script (So no, I'm not their scripter, so don't take it out on their server, lol)

Ok, so I started attempting to make a DM server, this is my first problem:

http://pastebin.com/6eb5uXsn

My Error:

C:\Users\Cazzum\Desktop\gamemodes\Untitled.pwn(54) : warning 202: number of arguments does not match definition
C:\Users\Cazzum\Desktop\gamemodes\Untitled.pwn(55) : warning 202: number of arguments does not match definition
C:\Users\Cazzum\Desktop\gamemodes\Untitled.pwn(56) : warning 202: number of arguments does not match definition
C:\Users\Cazzum\Desktop\gamemodes\Untitled.pwn(66) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: I need help please - willsuckformoney - 03.12.2010

http://pastebin.com/8SxyJfVA


Re: I need help please - scripter1 - 03.12.2010

The correct format for SetPlayerPos is
pawn Код:
SetPlayerPos(playerid,Float:x,Float:y,Float:z)
The correct format for SetPlayerCameraPos is
pawn Код:
SetPlayerCameraPos(playerid,Float:x,Float:y,Float:z)
And the correct format for SetPlayerCameraLookAt is
pawn Код:
SetPlayerCameraLookAt(playerid,Float:x,Float:y,Float:z)
And remove the ; at line 66 after else

All of this information can be found at SA-MP's wiki page.


Re: I need help please - lsrgta - 03.12.2010

Wow, thanks for the help, its completely working now.

I really appreciate the help.