[HELP PLEASE] warning 202: number of arguments does not match definition
#1

Hey. So I downloaded streamer and I put the streamer.inc into the pawno/include folder. When I tried to compile it gave me this warning.


Quote:

C:\Users\Dave\Desktop\SAMP server\pawno\include\streamer.inc(449) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

I have no idea why this is happening so please help me!


Thanks.
Reply
#2

what's the line? I have this streamer and doesn't give me any warnings.
Reply
#3

Line in streamer.

Quote:

SetPlayerMapIcon(0, 0, 0.0, 0.0, 0.0, 0, 0, 0);

Reply
#4

SetPlayerMapIcon is a native function. Are you sure for this name?
Reply
#5

Parameters:
(playerid, iconid, Float: x, Float: y, Float: z, markertype, color, style)
playerid The ID of the player to set the map icon for.
iconid The player's icon ID, ranging from 0 to 99, to be used in RemovePlayerMapIcon.
Float: x The X coordinate of the place where you want the icon to be.
Float: y The Y coordinate of the place where you want the icon to be.
Float: z The Z coordinate of the place where you want the icon to be.
markertype The icon to set.
color The color of the icon, this should only be used with the square icon (ID: 1).
style See Below

Style

0: MAPICON_LOCAL Display in the player's local area
1: MAPICON_GLOBAL Display always
2: MAPICON_LOCAL_CHECKPOINT Display in the player's local area and has a checkpoint marker
3: MAPICON_GLOBAL_CHECKPOINT Display always and has a checkpoint marker


Note: If you use an invalid icon ID, it will create ID 1 (White Square)

Important Note: You can only have 100 mapicons!


Returns This function returns 1 if it was successful, and 0 otherwise (e.g. the player isn't connected).


Код:
public OnPlayerConnect( playerid )
{
    // This example demonstrates how to create a dollar-icon on top of a 24/7 located
    // in Las Venturas. This way new players know where to go with their money!
    SetPlayerMapIcon( playerid, 12, 2204.9468, 1986.2877, 16.7380, 52, 0, MAPICON_LOCAL );
}
Tutorial from wiki.
Reply
#6

Quote:
Originally Posted by mitosking
Посмотреть сообщение
SetPlayerMapIcon is a native function. Are you sure for this name?
That's the line in streamer.inc on line 449 anyway.
Reply
#7

You are compiling the up-to-date streamer inc with the outdated samp package files.
Reply
#8

So what should I do?
Reply
#9

Download the new sa-mp 0.3c server package from www.sa-mp.com and re-compile it in the new 0.3c folder.
Reply
#10

Quote:
Originally Posted by admantis
Посмотреть сообщение
Download the new sa-mp 0.3c server package from www.sa-mp.com and re-compile it in the new 0.3c folder.
Did it. Now it does this:

Quote:

C:\Users\Dave\Desktop\SAMP server\gamemodes\larp.pwn(455) : fatal error 100: cannot read from file: "streamer"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#11

Of course, you need to move all your files (includes) to the new folder.
Reply
#12

I moved everything but still there's something wrong.

Quote:

Script[gamemodes/RPGM.amx]: Run time error 19: "File or function is not found"

Reply
#13

Remember to move the plugins also.. and re-edit your server.cfg file
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)