13.04.2015, 00:14
Al parecer era asн, pero ahora tengo estos warn's:
el CMD donde me da el error:
La lнnea del warning.
Код:
C:\Documents and Settings\Nazareno\Escritorio\RP NUEVO\gamemodes\CH-RP.pwn(3052) : warning 203: symbol is never used: "ATMi" C:\Documents and Settings\Nazareno\Escritorio\RP NUEVO\gamemodes\CH-RP.pwn(408) : warning 204: symbol is assigned a value that is never used: "ATMm" C:\Documents and Settings\Nazareno\Escritorio\RP NUEVO\gamemodes\CH-RP.pwn(408 -- 3052) : warning 203: symbol is never used: "AddATM"
pawn Код:
zcmd(addatm, playerid, params[])
{
new hCost;
if(IsPlayerAdmin(playerid))
{
if(!sscanf(params, "i", hCost))
{
new Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ;
GetPlayerPos(playerid, OX, OY, OZ);
oModel[playerid] = 2942;
ATMm = hCost;
ORX = 0.0;
ORY = 0.0;
ORZ = 0.0;
Object[playerid] = CreateObject(2942, OX+2, OY, OZ, ORX, ORY, ORZ); //Object will render at its default distance.
SendClientMessage(playerid, 0xD8D8D8FF, "Object spawned now move it");
EditObject(playerid, Object[playerid]);
return 1;
}
else return SendClientMessage(playerid, COLOR_RED, "USAGE: /addatm [amount of money]");
}
else return SendClientMessage(playerid, COLOR_RED, "You do not have the rights to use this command.");
}
Код:
ATMm = hCost;