SA-MP Forums Archive
[HELP]FS Problem - 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)
+--- Thread: [HELP]FS Problem (/showthread.php?tid=282568)



[HELP]FS Problem - [Aka]Dragonu - 11.09.2011

Hello, I made a very simple filterscript here it is :

pawn Код:
#include <a_samp>
#pragma tabsize 0

public OnGameModeInit()
{
//Gas Station Objects
CreateObject(1676, 998.29998779297, -937.79998779297, 42.900001525879, 0, 0, 8);
CreateObject(1676, 1002.700012207, -936.90002441406, 42.900001525879, 0, 0, 8);
CreateObject(1676, 1005.200012207, -936.59997558594, 42.900001525879, 0, 0, 8);
CreateObject(1676, 1009.5, -936, 42.900001525879, 0, 0, 4);
CreateObject(1676, -2026.6999511719, 155.60000610352, 29.60000038147, 0, 0, 90);
CreateObject(1676, -2026.8000488281, 157.60000610352, 29.60000038147, 0, 0.75, 269);
CreateObject(1676, 67.900001525879, 1220.6999511719, 19.700000762939, 0, 1, 256);
CreateObject(1676, 73.800003051758, 1219.0999755859, 19.700000762939, 358.75018310547, 358.99975585938, 72.728149414063);

//Police Department icons
CreateMapIcon(30, 0, -1604.9640, 714.1147, 13.0789);
CreateMapIcon(30, 0, 1545.1973, -1676.1083, 13.5599);
CreateMapIcon(30, 0, 2289.4521,2430.1086,10.8203);

return 0;
}
And when I compile I get these errors :
pawn Код:
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(17) : error 017: undefined symbol "CreateMapIcon"
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(18) : error 017: undefined symbol "CreateMapIcon"
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(19) : error 017: undefined symbol "CreateMapIcon"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
What is the problem ?


Re: [HELP]FS Problem - Kingunit - 11.09.2011

It's SetPlayerMapIcon
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon

pawn Код:
#include <a_samp>
#pragma tabsize 0

public OnGameModeInit()
{
    //Gas Station Objects
    CreateObject(1676, 998.29998779297, -937.79998779297, 42.900001525879, 0, 0, 8);
    CreateObject(1676, 1002.700012207, -936.90002441406, 42.900001525879, 0, 0, 8);
    CreateObject(1676, 1005.200012207, -936.59997558594, 42.900001525879, 0, 0, 8);
    CreateObject(1676, 1009.5, -936, 42.900001525879, 0, 0, 4);
    CreateObject(1676, -2026.6999511719, 155.60000610352, 29.60000038147, 0, 0, 90);
    CreateObject(1676, -2026.8000488281, 157.60000610352, 29.60000038147, 0, 0.75, 269);
    CreateObject(1676, 67.900001525879, 1220.6999511719, 19.700000762939, 0, 1, 256);
    CreateObject(1676, 73.800003051758, 1219.0999755859, 19.700000762939, 358.75018310547, 358.99975585938, 72.728149414063);

    //Police Department icons
    SetPlayerMapIcon(30, 0, -1604.9640, 714.1147, 13.0789);
    SetPlayerMapIcon(30, 0, 1545.1973, -1676.1083, 13.5599);
    SetPlayerMapIcon(30, 0, 2289.4521,2430.1086,10.8203);

return 0;
}



Re: [HELP]FS Problem - [Aka]Dragonu - 11.09.2011

Now I get 6 warning :

pawn Код:
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(17) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(17) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(18) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(18) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(19) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\Untitled.pwn(19) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.



Re: [HELP]FS Problem - MadeMan - 11.09.2011

Put the map icons to OnPlayerSpawn

pawn Код:
SetPlayerMapIcon(playerid, 0, -1604.9640, 714.1147, 13.0789, 30, 0);
SetPlayerMapIcon(playerid, 1, 1545.1973, -1676.1083, 13.5599, 30, 0);
SetPlayerMapIcon(playerid, 2, 2289.4521, 2430.1086, 10.8203, 30, 0);



Re: [HELP]FS Problem - [Aka]Dragonu - 11.09.2011

Hey man, don't you understand? This is a filter script!


Re: [HELP]FS Problem - MadeMan - 11.09.2011

Quote:
Originally Posted by [Aka]Dragonu
Посмотреть сообщение
Hey man, don't you understand? This is a filter script!
So what?


Re: [HELP]FS Problem - [Aka]Dragonu - 11.09.2011

So I can't add it into my gamemode, I want to make a filterscript with this, anyone else can help me please?


Re: [HELP]FS Problem - Kingunit - 11.09.2011

pawn Код:
#include <a_samp>
#pragma tabsize 0

public OnGameModeInit()
{
    //Gas Station Objects
    CreateObject(1676, 998.29998779297, -937.79998779297, 42.900001525879, 0, 0, 8);
    CreateObject(1676, 1002.700012207, -936.90002441406, 42.900001525879, 0, 0, 8);
    CreateObject(1676, 1005.200012207, -936.59997558594, 42.900001525879, 0, 0, 8);
    CreateObject(1676, 1009.5, -936, 42.900001525879, 0, 0, 4);
    CreateObject(1676, -2026.6999511719, 155.60000610352, 29.60000038147, 0, 0, 90);
    CreateObject(1676, -2026.8000488281, 157.60000610352, 29.60000038147, 0, 0.75, 269);
    CreateObject(1676, 67.900001525879, 1220.6999511719, 19.700000762939, 0, 1, 256);
    CreateObject(1676, 73.800003051758, 1219.0999755859, 19.700000762939, 358.75018310547, 358.99975585938, 72.728149414063);
   
   
}

public OnPlayerConnect(playerid)
{
    //Police Department icons
    SetPlayerMapIcon(playerid, 30, 0, -1604.9640, 714.1147, 13.0789);
    SetPlayerMapIcon(playerid, 30, 0, 1545.1973, -1676.1083, 13.5599);
    SetPlayerMapIcon(playerid, 30, 0, 2289.4521,2430.1086,10.8203);

    return 0;
}



Re: [HELP]FS Problem - [Aka]Dragonu - 11.09.2011

I still have those 6 warning man :

pawn Код:
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\gl_SAWoT.pwn(22) : warning 213: tag mismatch
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\gl_SAWoT.pwn(22) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\gl_SAWoT.pwn(23) : warning 213: tag mismatch
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\gl_SAWoT.pwn(23) : warning 202: number of arguments does not match definition
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\gl_SAWoT.pwn(24) : warning 213: tag mismatch
D:\Games\san andreas\GTA San Andreas\RolePlayLS\filterscripts\gl_SAWoT.pwn(24) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Warnings.



Re: [HELP]FS Problem - Kingunit - 11.09.2011

Drop your errors here again and your current code. Or send me your teamviewer ID + Pass and I will fix it.

// Didn't saw your edit


Re: [HELP]FS Problem - Kush - 11.09.2011

Quote:
Originally Posted by Kingunit
View Post
Drop your errors here again and your current code. Or send me your teamviewer ID + Pass and I will fix it.

// Didn't saw your edit
Why would you need his teamviewer? You must read before posting.

PHP Code:
#include <a_samp>
public OnGameModeInit()
{
    
//Gas Station Objects
    
CreateObject(1676998.29998779297, -937.7999877929742.900001525879008);
    
CreateObject(16761002.700012207, -936.9000244140642.900001525879008);
    
CreateObject(16761005.200012207, -936.5999755859442.900001525879008);
    
CreateObject(16761009.5, -93642.900001525879004);
    
CreateObject(1676, -2026.6999511719155.6000061035229.600000381470090);
    
CreateObject(1676, -2026.8000488281157.6000061035229.6000003814700.75269);
    
CreateObject(167667.9000015258791220.699951171919.70000076293901256);
    
CreateObject(167673.8000030517581219.099975585919.700000762939358.75018310547358.9997558593872.728149414063);
}
public 
OnPlayerConnect(playerid)
{
    
SetPlayerMapIcon(playerid1,-1604.9640714.114713.0789,30,0,0);
    
SetPlayerMapIcon(playerid21545.1973, -1676.108313.5599,30,0,0);
    
SetPlayerMapIcon(playerid32289.4521,2430.1086,10.8203,30,0,0);
    return 
1;

Tested.


Re: [HELP]FS Problem - Kingunit - 11.09.2011

Quote:
Originally Posted by Kush
View Post
Why would you need his teamviewer? You must read before posting.

PHP Code:
#include <a_samp>
public OnGameModeInit()
{
    
//Gas Station Objects
    
CreateObject(1676998.29998779297, -937.7999877929742.900001525879008);
    
CreateObject(16761002.700012207, -936.9000244140642.900001525879008);
    
CreateObject(16761005.200012207, -936.5999755859442.900001525879008);
    
CreateObject(16761009.5, -93642.900001525879004);
    
CreateObject(1676, -2026.6999511719155.6000061035229.600000381470090);
    
CreateObject(1676, -2026.8000488281157.6000061035229.6000003814700.75269);
    
CreateObject(167667.9000015258791220.699951171919.70000076293901256);
    
CreateObject(167673.8000030517581219.099975585919.700000762939358.75018310547358.9997558593872.728149414063);
}
public 
OnPlayerConnect(playerid)
{
    
SetPlayerMapIcon(playerid1,-1604.9640714.114713.0789,30,0,0);
    
SetPlayerMapIcon(playerid21545.1973, -1676.108313.5599,30,0,0);
    
SetPlayerMapIcon(playerid32289.4521,2430.1086,10.8203,30,0,0);
    return 
1;

Tested.
That's the way I like to fix problem. Why do you mind?

// But I see Kush already fixed it.