17.03.2014, 17:24
What's the problem ? ? ? ?
line 18353
Help
PHP код:
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.
PHP код:
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;
}
PHP код:
CreateVehicle(CarInfo[vehid][cModel],CarInfo[vehid][cLocationx],CarInfo[vehid][cLocationy],CarInfo[vehid][cLocationz]+1.0,CarInfo[vehid][cAngle],60000);