[Help] problem! cmd /asellcar
#1

What's the problem ? ? ? ?

PHP код:
J:\New folder (2)\blablalba\gamemodes\bla-RP.pwn(18353) : warning 202number of arguments does not match definition
J
:\New folder (2)\blablalba\gamemodes\bla-RP.pwn(18353) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:          11188 bytes
Code size
:          1976884 bytes
Data size
:          7646960 bytes
Stack
/heap size:      16384 bytesestimated maxusage=5259 cells (21036 bytes)
Total requirements9651416 bytes
2 Warnings

PHP код:
    if(!strcmp(cmdtext"/asellcar"true))
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
gPlayerLogged[playerid] == 0)
            {
                
SCM(playeridCOLOR_GREY"   You need to login first !");
                return 
1;
            }
            if(
PlayerInfo[playerid][pAdmin] >= 1339)
            {
                new 
vehid GetPlayerVehicleID(playerid);
                
GetPlayerName(playeridplayernamesizeof(playername));
                new 
Float:x,Float:y,Float:z;
                 new 
Float:a;
                 
CarInfo[vehid][cOwned] = 0;
                 
strmid(CarInfo[vehid][cOwner], "Dealership"0strlen("Dealership"), 999);
                 
PlayerPlaySound(playerid10520.00.00.0);
                 
GameTextForPlayer(playerid"~w~You have admin sold the vehicle"100003);
                 
GetVehiclePos(vehidxyz);
                 
GetVehicleZAngle(vehida);
                 
CarInfo[vehid][cLocationx] = x;
                 
CarInfo[vehid][cLocationy] = y;
                 
CarInfo[vehid][cLocationz] = z;
                 
CarInfo[vehid][cAngle] = a;
                 
RemovePlayerFromVehicle(playerid);
                 
TogglePlayerControllable(playerid1);
                 
OnPropUpdate();
                 
DestroyVehicle(vehid);
                
CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],60000);
                
format(stringsizeof(string), "[AdmWarning]: %s a folosit comanda /asellcar.",playername);
                
ABroadCast(COLOR_LIGHTRED,string5);
                return 
1;
            }
            else
            {
                
SCM(playeridCOLOR_GREY"   You're not authorized to use that command !");
                return 
1;
            }
        }
        return 
1;
    } 
line 18353

PHP код:
CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],60000); 
Help
Reply
#2

Up....
Reply
#3

pawn Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
pawn Код:
CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],10,10,60000);
Reply
#4

Color is missing before the respawn_delay:
Код:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)
Reply
#5

Tnx Rep+ for u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)