PDA

View Full Version : [Help] problem! cmd /asellcar


KingServerIRAN
17/03/2014, 05:24 PM
What's the problem ? ? ? ?

J:\New folder (2)\blablalba\gamemodes\bla-RP.pwn(18353) : warning 202: number of arguments does not match definition
J:\New folder (2)\blablalba\gamemodes\bla-RP.pwn(18353) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 11188 bytes
Code size: 1976884 bytes
Data size: 7646960 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5259 cells (21036 bytes)
Total requirements: 9651416 bytes

2 Warnings.


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

line 18353

CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],60000);

Help

KingServerIRAN
17/03/2014, 05:36 PM
Up....

Matess
17/03/2014, 05:38 PM
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)


CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],10,10,60000);

Macronix
17/03/2014, 05:41 PM
Color is missing before the respawn_delay:
CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay)

KingServerIRAN
17/03/2014, 05:41 PM
Tnx Rep+ for u :D