SA-MP Forums Archive
[SOLVED]Help needed - 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 needed (/showthread.php?tid=118761)



[SOLVED]Help needed - ClanDBZVegeta - 04.01.2010

but i still need help
anyways here:
Код:
C:\GTA San Andreas\SA-MP Server\filterscripts\TwinT.pwn(31) : error 010: invalid function or declaration
C:\GTA San Andreas\SA-MP Server\filterscripts\TwinT.pwn(65) : warning 203: symbol is never used: "tower1"
C:\GTA San Andreas\SA-MP Server\filterscripts\TwinT.pwn(65) : warning 203: symbol is never used: "tower1inside"
C:\GTA San Andreas\SA-MP Server\filterscripts\TwinT.pwn(65) : warning 203: symbol is never used: "tower2"
C:\GTA San Andreas\SA-MP Server\filterscripts\TwinT.pwn(65) : warning 203: symbol is never used: "tower2inside"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
i have this at the beginning
Код:
new tower1;
new tower2;
new tower1inside;
new tower2inside;
And this:
Код:
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" ORLY?");
	print("--------------------------------------\n");
	return 1;
}

1 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
2 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
3 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
4 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);

public OnFilterScriptExit()
{
	return 1;
}
line 31:
Код:
1 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
My first FS so PLEAZ GO EASY



Re: Help needed - MadeMan - 04.01.2010

Which one is line 26 ?


Re: Help needed - ClanDBZVegeta - 04.01.2010

i still need help


Re: Help needed - HydraX - 04.01.2010

1,2,3,4 is not a valid variable

pawn Код:
tower1 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
tower2 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
tower1inside = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
tower2inside = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
pawn Код:
(model, type, Float:X, Float:Y, Float:Z, Virtualworld)



Re: Help needed - ClanDBZVegeta - 04.01.2010

Quote:
Originally Posted by HydraX
1,2,3,4 is not a valid variable
o wait
i just didnt want ppl to know my first FS
so i replaced 1,2,3,4 i actually have tower1 and the others but same error comes >_<


Re: Help needed - MadeMan - 04.01.2010

Quote:
Originally Posted by ClanDBZVegeta
Quote:
Originally Posted by HydraX
1,2,3,4 is not a valid variable
o wait
i just didnt want ppl to know my first FS
so i replaced 1,2,3,4 i actually have tower1 and the others but same error comes >_<
Can't you show what you really have there? Would be a lot easier to help.


Re: Help needed - HydraX - 04.01.2010

Quote:
Originally Posted by ClanDBZVegeta
Quote:
Originally Posted by HydraX
1,2,3,4 is not a valid variable
o wait
i just didnt want ppl to know my first FS
so i replaced 1,2,3,4 i actually have tower1 and the others but same error comes >_<
Fine then...


This goes at the very top but under the #include's

pawn Код:
new 1;
new 2;
new 3;
new 4;
Put this Under OnFilterScriptInit()

pawn Код:
1 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
2 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
3 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
4 = CreatePickup(1274, 2, 2491.7900, -1668.1653, 13.3438, -1);
Then you need to know what you want the variable to do..

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) //Pickup callback
{ //Begining bracket
  if(pickupid == 1) GivePlayerMoney(playerid,10000); //pickup new 1;
  if(pickupid == 2) ... //pickup new 2;
  return 1; //Returns the callback
} //ending bracket



Re: Help needed - patchkinson - 04.01.2010

Quote:
Originally Posted by ClanDBZVegeta
Quote:
Originally Posted by HydraX
1,2,3,4 is not a valid variable
o wait
i just didnt want ppl to know my first FS
so i replaced 1,2,3,4 i actually have tower1 and the others but same error comes >_<
if you are working on a FS and wanted secret why didnt you ask a personal friend for help?,and dont re add my xfire btw vegeta


Re: Help needed - HydraX - 04.01.2010

You could just ask in our forum... I visit it you know..


Re: Help needed - ClanDBZVegeta - 04.01.2010

Quote:
Originally Posted by patchkinson
Quote:
Originally Posted by ClanDBZVegeta
Quote:
Originally Posted by HydraX
1,2,3,4 is not a valid variable
o wait
i just didnt want ppl to know my first FS
so i replaced 1,2,3,4 i actually have tower1 and the others but same error comes >_<
if you are working on a FS and wanted secret why didnt you ask a personal friend for help?,and dont re add my xfire btw vegeta
i hate you