where to put these items in pawno?
#1

where to put these items in pawno? please show me
Code:
CreateObject(3587, 1794.7022705078, -1695.2153320313, 15.110673904419, 0, 0, 270.67565917969);
CreateObject(5816, 1768.1571044922, -1703.9428710938, 21.68334197998, 0, 0, 0);
CreateObject(974, 1807.8408203125, -1721.435546875, 15.318344116211, 0, 0, 0);
CreateObject(969, 1799.0711669922, -1720.6539306641, 12.546064376831, 0, 0, 0);
CreateObject(1228, 1763.0718994141, -1712.5185546875, 27.046127319336, 0, 0, 0);
CreateObject(1411, 1769.3977050781, -1686.7436523438, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1764.205078125, -1686.740234375, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1774.5736083984, -1686.5385742188, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1779.7142333984, -1686.3762207031, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1790.0700683594, -1686.2421875, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1784.9580078125, -1686.25, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1784.9580078125, -1686.25, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1784.9580078125, -1686.25, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1800.3875732422, -1686.1927490234, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1795.2258300781, -1686.2542724609, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1805.6077880859, -1686.2451171875, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1811.5423583984, -1699.4725341797, 17.944629669189, 0, 0, 274.64562988281);
CreateObject(1411, 1811.5650634766, -1689.529296875, 17.944629669189, 0, 0, 272.66064453125);
CreateObject(1411, 1809.0828857422, -1686.345703125, 17.941711425781, 0, 0, 0);
CreateObject(1411, 1811.564453125, -1689.529296875, 17.944629669189, 0, 0, 272.65869140625);
CreateObject(1411, 1811.5592041016, -1694.7766113281, 17.944629669189, 0, 0, 272.66064453125);
CreateObject(1411, 1810.8009033203, -1714.8704833984, 17.944629669189, 0, 0, 266.69860839844);
CreateObject(1411, 1811.4677734375, -1704.509765625, 17.944629669189, 0, 0, 266.69860839844);
CreateObject(1411, 1811.169921875, -1709.708984375, 17.944629669189, 0, 0, 266.69860839844);
CreateObject(1411, 1808.5659179688, -1721.4283447266, 17.267244338989, 0, 0, 0);
CreateObject(1422, 1779.7762451172, -1691.1164550781, 12.852063179016, 0, 0, 270.67565917969);
CreateObject(2062, 1763.4089355469, -1715.1409912109, 27.193634033203, 0, 0, 0);
CreateObject(1362, 1792.5006103516, -1701.6607666016, 13.130074501038, 0, 0, 0);
CreateObject(1717, 1792.6398925781, -1694.4877929688, 13.664004325867, 0, 0, 320.30029296875);
CreateObject(1337, 1783.9434814453, -1706.5078125, 27.269853591919, 0, 0, 0);
CreateObject(942, 1779.759765625, -1706.671875, 14.966663360596, 0, 0, 0);
CreateObject(1422, 1767.5964355469, -1691.1762695313, 12.837569236755, 0, 0, 270.67565917969);
CreateObject(1422, 1767.595703125, -1691.17578125, 12.837569236755, 0, 0, 270.67565917969);
CreateObject(988, 1761.4989013672, -1692.1121826172, 12.41529750824, 0, 0, 270.67565917969);
CreateObject(988, 1761.5234375, -1700.1337890625, 12.426567077637, 0, 0, 270.67565917969);
CreateObject(2973, 1762.7918701172, -1704.1166992188, 12.440537452698, 0, 0, 0);
CreateObject(2973, 1763.1502685547, -1688.4135742188, 12.411660194397, 0, 0, 0);
CreateObject(2974, 1760.87109375, -1704.4093017578, 16.306671142578, 0, 0, 0);
CreateObject(2974, 1761.578125, -1687.677734375, 16.332990646362, 0, 0, 0);
CreateObject(2974, 1761.6890869141, -1696.0491943359, 16.334321975708, 0, 0, 0);
CreateObject(2974, 1760.8288574219, -1704.4333496094, 19.312650680542, 0, 0, 0);
CreateObject(2974, 1759.2451171875, -1704.5190429688, 17.4375, 0, 0, 0);
CreateObject(2974, 1759.2440185547, -1704.5994873047, 20.443479537964, 0, 0, 0);
Reply
#2

Code:
public OnGameModeInit()
Reply
#3

Code:
i got one error
[code\Items test samp.pwn(56) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#4

remove
Code:
#endif
from the top of your script
Reply
#5

its not any #Endif on the top of the script.
Reply
#6

On the last line put #endif , or take away #if defined FILTERSCRIPT
Reply
#7

at the bottom it should be } not {
Reply
#8

Quote:
Originally Posted by Fedee!
On the last line put #endif , or take away #if defined FILTERSCRIPT
i did, but it came a new error
Code:
Items test samp.pwn(9) : error 021: symbol already defined: "CreateObject"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.


Reply
#9

Under OnGameModeInit put { , you are missing one.
Reply
#10

http://pawn.pastebin.com/m30a84ab3

That's what you need

Also, if you want to make it a filterscript, just re-name OnGameModeInit to OnFilterScriptInit
Reply
#11

Quote:
Originally Posted by JaTochNietDan
http://pawn.pastebin.com/m30a84ab3

That's what you need

Also, if you want to make it a filterscript, just re-name OnGameModeInit to OnFilterScriptInit
you are the best man xD thanks for your help xD
Reply
#12

can some one help me? I got this Filter Script that lets you repair your vehicle when you press "2". So my question is how to change the key"2" into another key so when i press the other key it will repair?


#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
#include <a_samp>
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Car Fix Press 2 to fix you car.");
print("--------------------------------------\n");

return 1;

}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid))
{
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid,COLOR_YELLOW,"Car fixed!");
}
}
if(PRESSED(KEY_ACTION))
{
if(IsPlayerNotInVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"You have to be in a car!");
}
}
}
#endif
Reply
#13

change the :
pawn Код:
KEY_SUBMISSION
on the line
pawn Код:
if(PRESSED(KEY_SUBMISSION))
to other key(like : KEY_FIRE , KEY_UP)
here is a list with all keys you can use:https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)