problem with script - 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: problem with script (
/showthread.php?tid=66027)
problem with script -
sllide - 18.02.2009
i have a problem with my script
i had a code in my server it was working correct
but when i added the /freefall command it gives errors of scripts that still are the same
srry about my english
http://pastebin.com/m7ccc3455
Код:
:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(112) : warning 202: number of arguments does not match definition
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(113) : error 001: expected token: ";", but found "{"
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(114) : error 010: invalid function or declaration
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(117) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(119) : error 010: invalid function or declaration
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(122) : error 010: invalid function or declaration
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(124) : error 021: symbol already defined: "x"
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(124) : error 021: symbol already defined: "z"
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(124) : error 010: invalid function or declaration
C:\Users\jari\Desktop\ST.F.O\gamemodes\ST.F.O.pwn(124) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
9 Errors.
Re: problem with script -
sllide - 18.02.2009
bamp
need help RLY quick
REALY!
Re: problem with script -
TheAngel105 - 18.02.2009
There you go:
http://pastebin.com/m5ebf6e4d
Didn't have time to correct everything but compiled, and worked fine.
Re: problem with script -
sllide - 18.02.2009
tnx
u only used tab?
or am i missing something
Re: problem with script -
TheAngel105 - 18.02.2009
Umm, no...
Line 112:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])IsPlayerInAnyVehicle()
I removed IsPlayerInAnyVehicle()
Line 116, 138:
pawn Код:
new float:x, float:y, float:z;
Put
Float, not float, they are different.
Line 124:
pawn Код:
new float:x, float:y, float:z; float:VehicleID;
Put
Float instead of float and see that after float:z you have ";" instead of ",", + VehicleID shouldn't be a float.
GL scripting