number of arguments does not match definition
#1

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]);
Reply
#2

"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
Reply
#3

can you explain me how can i fix it?
Reply
#4

Just do this:

PHP код:
aPos[evR] = GetPlayerInterior(playerid);
aPos[evS] = GetPlayerVirtualWorld(playerid); 
Reply
#5

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(playeridpPos[evR]);
SetPlayerVirtualWorld(playeridpPos[evS]); 
Reply
#6

Remove the Float tags for evR, evS.

Example:
pawn Код:
enum GetAdminPos
{
    Float:evX,
    Float:evY,
    Float:evZ,
    Float:evA,
    evR,
    evS
};
new aPos[GetAdminPos];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)