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)
+--- Thread: number of arguments does not match definition (
/showthread.php?tid=614718)
number of arguments does not match definition -
javedali1211 - 11.08.2016
please can anyone explain me what is the problem on this?
Код:
Код:
enum GetAdminPos
{
Float:evX,
Float:evY,
Float:evZ,
Float:evA,
Float:evR,
Float:evS
};
new aPos[GetAdminPos];
The Error on this Line
Код:
GetPlayerInterior(playerid, aPos[evR]);
GetPlayerVirtualWorld(playerid, aPos[evS]);
Re: number of arguments does not match definition -
Vince - 11.08.2016
"Number of arguments" is literally counting the number of arguments - the things between the brackets - to see if that number matches up with the number of arguments in the function protoype. If you don't know what the prototype is, find a reference. Like
https://sampwiki.blast.hk/wiki/GetPlayerInterior and
https://sampwiki.blast.hk/wiki/GetPlayerVirtualWorld
Re: number of arguments does not match definition -
javedali1211 - 11.08.2016
can you explain me how can i fix it?
Re: number of arguments does not match definition -
Kaliber - 11.08.2016
Just do this:
PHP код:
aPos[evR] = GetPlayerInterior(playerid);
aPos[evS] = GetPlayerVirtualWorld(playerid);
Re: number of arguments does not match definition -
javedali1211 - 11.08.2016
Another Error
Код:
C:\Users\Cnr\gamemodes\Cnr.pwn(34625) : warning 213: tag mismatch
C:\Users\Cnr\gamemodes\Cnr.pwn(34626) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.
Error on this
PHP код:
SetPlayerInterior(playerid, pPos[evR]);
SetPlayerVirtualWorld(playerid, pPos[evS]);
Re: number of arguments does not match definition -
VVWVV - 11.08.2016
Remove the Float tags for evR, evS.
Example:
pawn Код:
enum GetAdminPos
{
Float:evX,
Float:evY,
Float:evZ,
Float:evA,
evR,
evS
};
new aPos[GetAdminPos];