Sari la conținut

Postări Recomandate

Postat

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.
Postat

Incearca asa :
1. CMD:object(playerid, params[])
           
sau
2. CMD:object( playerid, params[ ] )

Postat

Incearca asa :

1. CMD:object(playerid, params[])

            sau

2. CMD:object( playerid, params[ ] )

Serios ? :)) Nu cred ca are legatura :) Si la el sunt corect puse..

 

 

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.

 

Te ajut eu in pm daca vrei.Cauta warningul la linia 16860

Postat

Serios ? :)) Nu cred ca are legatura :) Si la el sunt corect puse..

 

Te ajut eu in pm daca vrei.Cauta warningul la linia 16860

linia maxima e 16859 la mine

Postat

linia maxima e 16859 la mine

Aa .. gata stiu .. dar explica si tu pana la urma ce problema ai =))

Hai pe skype si da parta

Sau 

baga si astea

This is the hidden content, please
La sfarsit
[[Template forums/front/topics/postContainer is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Postat

Problema a fost rezolvata,     Multimesc Tudor pentru ajutor.

Vizitator
Acest subiect este acum închis pentru alte răspunsuri.
  • Navigare recentă   0 membri

    • Nici un utilizator înregistrat nu vede această pagină.
×
×
  • Creează nouă...