SetPlayerMapIcon Problem For REP+1
#1

Guys i need little help. Im Pasting pawn code like this see:
Код:
#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" mapicon");
	print("--------------------------------------\n");
	public OnPlayerConnect( playerid )
{
    SetPlayerMapIcon( playerid, 19, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL );
}
	return 1;
	#endif
}
and when i compile it says:
Код:
C:\Documents and Settings\User\Desktop\maps\mapicon.pwn(18) : error 054: unmatched closing brace ("}")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
what should i do and can u tell me my mistake ?
Thanks
Avi.
Reply
#2

move SetPlayerMapIcon to OnPlayerConnect

then

pawn Код:
public OnPlayerConnect( playerid ) //remove this
{ //also this
    SetPlayerMapIcon( playerid, 19, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL ); //move this onplayerconnect
} //and this
You are already have OnPlayerConnect below OnPlayerRequestClass.
Reply
#3

can u show me example ? Please show me that i can simply put in my script.( Im making Filterscript for it !!!)
Reply
#4

Hey Now im doing like this:
Quote:

#include <a_samp>

#pragma tabsize 0

main()
{
print("\n----------------------------------");
print(" mapicons\n");
print("----------------------------------\n");
}

public OnPlayerConnect(playerid)
{
SetPlayerMapIcon( playerid, 19, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL )
return 1;
}

It shows:
Quote:

C:\Documents and Settings\User\Desktop\maps\mapicon.pwn(15) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Need Help ASAP !!!
Reply
#5

pawn Код:
#include <a_samp>

#pragma tabsize 0

main()
{
print("\n----------------------------------");
print(" mapicons\n");
print("----------------------------------\n");
}

public OnPlayerConnect(playerid)
{
SetPlayerMapIcon( playerid, 19, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL );
return 1;
}
Reply
#6

Spirit Thx It helps | +1 Rep |
Reply
#7

Dude you need at least 50 post to give rep and u have 22 post
Reply
#8

ok
Reply
#9

hey i put 4 map icon but in game just 2 are coming !!! what is the problem see:
Quote:

#include <a_samp>

#pragma tabsize 0

main()
{
print("\n----------------------------------");
print(" mapicons\n");
print("----------------------------------\n");
}

public OnPlayerConnect(playerid)
{
SetPlayerMapIcon( playerid, 19, 2005.6378,-2453.3921,13.5469, 19, 0, MAPICON_LOCAL );
SetPlayerMapIcon( playerid, 19, 1325.9337,1325.9865,10.8203, 19, 0, MAPICON_LOCAL );
SetPlayerMapIcon( playerid, 19, 307.0211,2046.5216,17.6406, 19, 0, MAPICON_LOCAL );
SetPlayerMapIcon( playerid, 19, -1118.2983,-184.1641,14.1440, 19, 0, MAPICON_LOCAL );
return 1;
}

Help Me Please !!!
Reply
#10

Bump !! Need Help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)