17.04.2014, 23:56
some error
line 1833
line 2050
pawn Код:
C:\Users\KurniaRocki\Downloads\Compressed\xHardTruckerZ\gamemodes\xTrucking.pwn(1833) : warning 202: number of arguments does not match definition
C:\Users\KurniaRocki\Downloads\Compressed\xHardTruckerZ\gamemodes\xTrucking.pwn(1833) : warning 202: number of arguments does not match definition
C:\Users\KurniaRocki\Downloads\Compressed\xHardTruckerZ\gamemodes\xTrucking.pwn(2050) : warning 206: redundant test: constant expression is non-zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
pawn Код:
CMD:find(playerid, params[])
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /find [playerid]");
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You can't use this command on yourself."); return 1; }
if(GetPlayerInterior(giveplayerid)!=0) { SendClientMessage(playerid, COLOR_GREY, "That person is inside an interior."); return 1; }
SetPlayerMarkerForPlayer(playerid, giveplayerid, COLOR_RED);
new zone[MAX_ZONE_NAME];
GetPlayer3DZone(giveplayerid, zone, sizeof(zone));
/*line 1833*/ format(string, sizeof(string), "Player %s has been last seen at %s", GetPlayerName(giveplayerid), zone); //////line 1833
SendClientMessage(playerid, COLOR_GREY, string);
FindingPlayer[playerid]=giveplayerid;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Invalid player specified.");
}
return 1;
}
pawn Код:
stock Float:GetPlayerSpeed(playerid)
{
new Float:SpeedX, Float:SpeedY, Float:SpeedZ;
new Float:Speed;
if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid), SpeedX, SpeedY, SpeedZ);
else GetPlayerVelocity(playerid, SpeedX, SpeedY, SpeedZ);
/*line2050*/if(Z) Speed = floatsqroot(floatadd(floatpower(SpeedX, 2.0), floatadd(floatpower(SpeedY, 2.0), floatpower(SpeedZ, 2.0))));
else Speed = floatsqroot(floatadd(floatpower(SpeedX, 2.0), floatpower(SpeedY, 2.0)));
Speed = floatround(Speed * 100 * 1.61);
return Speed;
}