SA-MP Forums Archive
[HELP PLEASE] warning 202: number of arguments does not match definition - 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: [HELP PLEASE] warning 202: number of arguments does not match definition (/showthread.php?tid=249874)



[HELP PLEASE] warning 202: number of arguments does not match definition - Erks56 - 20.04.2011

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.


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - blackwave - 20.04.2011

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


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - Erks56 - 20.04.2011

Line in streamer.

Quote:

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




Re: [HELP PLEASE] warning 202: number of arguments does not match definition - mitosking - 20.04.2011

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


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - TheeProo - 20.04.2011

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.


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - Erks56 - 20.04.2011

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.


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - [L3th4l] - 20.04.2011

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


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - Erks56 - 20.04.2011

So what should I do?


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - admantis - 20.04.2011

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


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - Erks56 - 21.04.2011

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.




Re: [HELP PLEASE] warning 202: number of arguments does not match definition - admantis - 21.04.2011

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


Re: [HELP PLEASE] warning 202: number of arguments does not match definition - Erks56 - 21.04.2011

I moved everything but still there's something wrong.

Quote:

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




Re: [HELP PLEASE] warning 202: number of arguments does not match definition - admantis - 22.04.2011

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