problem with GetPlayerVirtualWorld
#1

Hello
I get an warning with the following:
pawn Код:
else if (strcmp("/park", cmd, true, 10) == 0)
{
    if (IsPlayerInVehicle(playerid,Carlist[playerid][Carid]))
    {
            GetVehiclePos(Carlist[playerid][Carid],Carlist[playerid][X],Carlist[playerid][Y],Carlist[playerid][Z]);
            GetVehicleZAngle(Carlist[playerid][Carid],Carlist[playerid][Rotation]);
            SetPlayerInterior(playerid,Carlist[playerid][Interior]);
            GetPlayerVirtualWorld(playerid,Carlist[playerid][Virtual]);//here is the warning!
            GameTextForPlayer(playerid, "~w~Fahrzeug ~g~geparkt", 5000, 6);
    }
    else { SendClientMessage(playerid, COLOR_GREY, "Du sitzt nicht in deinem eigenen Auto!"); }
    return 1;
}
The warning is:
pawn Код:
C:\Users\GTASA\Desktop\Server\carsystem.pwn(705) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
can someone tell me why?

thank you
Reply
#2

Try this

Carlist[playerid][Virtual]=GetPlayerVirtualWorld(playerid);
Reply
#3

Wrong Syntax:
It's GetPlayerVirtualWorld(playerid); with 1 argument, which returns the virtual world of the playerid =D

straco's solution is the right on‌e =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)