Salut all , ma poate ajuta cineva la aceasta problema?
//==================[ Object & Pickup ]=========================================
cmd:pickup(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
if(!strlen(params)) return SendClientMessage(playerid,red,"USAGE: /pickup [pickup id]");
new pickup = strval(params), string[128], Float:x, Float:y, Float:z, Float:a;
CMDMessageToAdmins(playerid,"PICKUP");
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
x += (3 * floatsin(-a, degrees));
y += (3 * floatcos(-a, degrees));
CreatePickup(pickup, 2, x+2, y, z);
format(string, sizeof(string), "CreatePickup(%d, 2, %0.2f, %0.2f, %0.2f);", pickup, x+2, y, z);
SaveToFile("Pickups",string);
return SendClientMessage(playerid,yellow, string);
} else return SendClientMessage(playerid,red,"{F81414}ERROR:{FFFFFF} You are not a high enough level to use this command");
}
cmd:object(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
if(!strlen(params)) return SendClientMessage(playerid,red,"USAGE: /object [object id]");
new object = strval(params), string[128], Float:x, Float:y, Float:z, Float:a;
CMDMessageToAdmins(playerid,"OBJECT");
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
x += (3 * floatsin(-a, degrees));
y += (3 * floatcos(-a, degrees));
CreateObject(object, x, y, z, 0.0, 0.0, a);
format(string, sizeof(string), "CreateObject(%d, %0.2f, %0.2f, %0.2f, 0.00, 0.00, %0.2f);", object, x, y, z, a);
SaveToFile("Objects",string);
format(string, sizeof(string), "You Have Created Object %d, at %0.2f, %0.2f, %0.2f Angle %0.2f", object, x, y, z, a);
return SendClientMessage(playerid,yellow, string);
} else return SendClientMessage(playerid,red,"{F81414}ERROR:{FFFFFF} You are not a high enough level to use this command");
}
daca dau compile imi da asta
C:\Users\MafiaValy\Desktop\Stunt Gaming Moldova v8(no virus)\filterscripts\SystemAdminSGM.pwn(16860) : warning 203: symbol is never used: "object"
C:\Users\MafiaValy\Desktop\Stunt Gaming Moldova v8(no virus)\filterscripts\SystemAdminSGM.pwn(16860) : warning 203: symbol is never used: "pickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.