+ValentinIonut Postat Mai 19, 2016 Raport Postat Mai 19, 2016 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.
AlleqsZ Postat Mai 19, 2016 Raport Postat Mai 19, 2016 Incearca asa : 1. CMD:object(playerid, params[]) sau2. CMD:object( playerid, params[ ] )
Five Postat Mai 19, 2016 Raport Postat Mai 19, 2016 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
+ValentinIonut Postat Mai 20, 2016 Autor Raport Postat Mai 20, 2016 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
AlleqsZ Postat Mai 20, 2016 Raport Postat Mai 20, 2016 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 Autentificare sau Înregistrare La sfarsit
+ValentinIonut Postat Mai 20, 2016 Autor Raport Postat Mai 20, 2016 Problema a fost rezolvata, Multimesc Tudor pentru ajutor.
Postări Recomandate