warning 202: number of arguments does not match definition
#1

Код:
new Float:ParkourRandom[][4] =
{
    {2442.3235,-1638.0476,13.4310,4.0},
    {1988.0079,-1628.4105,15.9691,4.0}
};
Код:
	if(dialogid == 1212)
	{
	    if(response)
	    {
	    	switch(listitem)
			{
				case 0:
				{
					SetPlayerVirtualWorld(playerid,1);
					new rand = random(sizeof(ParkourRandom));
					SetPlayerCheckpoint(playerid, ParkourRandom[rand][0], ParkourRandom[rand][1]);
					if(rand == 0)
					{
						TextDrawShowForPlayer(playerid, avispa);
					}
					if(rand == 1)
					{
						TextDrawShowForPlayer(playerid, eba);
					}
				}
			}	
		}
		return 1;
	}
What is wrong? How can i solve this??
Reply
#2

SetPlayerCheckpoint(playerid, ParkourRandom[rand][0], ParkourRandom[rand][1]);

Two params missing, wiki.sa-mp.com/wiki/Function:SetPlayerCheckpoint
Reply
#3

Quote:
Originally Posted by Jelly23
Посмотреть сообщение
SetPlayerCheckpoint(playerid, ParkourRandom[rand][0], ParkourRandom[rand][1]);

Two params missing, wiki.sa-mp.com/wiki/Function:SetPlayerCheckpoint
Still doesn't work.. Fuck it.
Reply
#4

Can you post your edited function here.
Reply
#5

I don't know if you even tried, but give this a try:

SetPlayerCheckpoint(playerid, ParkourRandom[rand][0], ParkourRandom[rand][1], ParkourRandom[rand][2], 3.0);
Reply
#6

Quote:
Originally Posted by Jelly23
Посмотреть сообщение
I don't know if you even tried, but give this a try:

SetPlayerCheckpoint(playerid, ParkourRandom[rand][0], ParkourRandom[rand][1], ParkourRandom[rand][2], 3.0);
Stil doesn't work..
Reply
#7

Hello!

Try this:
PHP код:
if(dialogid == 1212)
{
    if(
response)
    {
        switch(
listitem)
        {
            case 
0:
            {
                
SetPlayerVirtualWorld(playerid,1);
                new 
rand random(sizeof(ParkourRandom));
                
SetPlayerCheckpoint(playeridParkourRandom[rand][0], ParkourRandom[rand][1], ParkourRandom[rand][2],ParkourRandom[rand][3]);
                if(
rand == 0)
                {
                    
TextDrawShowForPlayer(playeridavispa);
                }
                else if(
rand == 1)
                {
                    
TextDrawShowForPlayer(playerideba);
                }
            }
        }
    }
    return 
1;

Reply
#8

Quote:
Originally Posted by Mencent
Посмотреть сообщение
Hello!

Try this:
PHP код:
if(dialogid == 1212)
{
    if(
response)
    {
        switch(
listitem)
        {
            case 
0:
            {
                
SetPlayerVirtualWorld(playerid,1);
                new 
rand random(sizeof(ParkourRandom));
                
SetPlayerCheckpoint(playeridParkourRandom[rand][0], ParkourRandom[rand][1], ParkourRandom[rand][2],ParkourRandom[rand][3]);
                if(
rand == 0)
                {
                    
TextDrawShowForPlayer(playeridavispa);
                }
                else if(
rand == 1)
                {
                    
TextDrawShowForPlayer(playerideba);
                }
            }
        }
    }
    return 
1;

Still doesn't wooorkkk......
Reply
#9

Can you show us the error and the row of it, please?
Reply
#10

new Float:ParkourRandom[][2] =
{
{2442.3235,-1638.0476,13.4310,4.0},
{1988.0079,-1628.4105,15.9691,4.0}
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)