User
Pass
2FA
 
 

[Problema plugin ] Give Item !
Go to page 1, 2  Next    
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message4700
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 13-05-2017, 13:14:01 | Translate post to: ... (Click for more languages)

»Nume*: Plugin item.
»Descriere problema*: Am facut un plugin dupa anumite tutoriale .Insa cand scriu in conola amx_item si numele individului tot eu primesc itemele . Daca scriu "amx_item" fara nimic altceva tot eu primesc itemele . Si inca o problema . Pot folosi si playerii comanda . Completati-l voi , dar puneti si explicatiile va rog !
»Poze/Sma:



Spoiler:

0 0
  
Back to top
View user's profile Send private message
GoreSpintecatoru.

[Inactiv o perioada]



Status: Offline
(since 09-11-2017 19:29)
Joined: 18 Feb 2017
Posts: 638, Topics: 28
Location: Romania

Reputation: 762.7
Votes: 40

       
Post Posted: 13-05-2017, 13:28:49 | Translate post to: ... (Click for more languages)

ia vezi asa
Spoiler:


Regulament|My Official Website[V:1.1]|Panel JB[V:1.0]

0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 13-05-2017, 15:10:24 | Translate post to: ... (Click for more languages)

GoreSpintecatoru. wrote:
ia vezi asa
Spoiler:

este foarte gresit cum ai facut, fara suparare

poftim
Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1




Last edited by ZPLegendary on 13-05-2017, 15:27:59; edited 1 time in total
0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 13-05-2017, 15:16:37 | Translate post to: ... (Click for more languages)

O sa il incerc diseara . Dar poti explica cea ce ai adaugat ? adica vreau sa invat si eu cate ceva !
0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 13-05-2017, 15:27:00 | Translate post to: ... (Click for more languages)

Poftim informatii
Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 14-05-2017, 12:20:10 | Translate post to: ... (Click for more languages)

Itemele le primesc dar in consola scrie "Unknown command: amx_item" , dc ?

Si "cmdGive" de unde ? Adica daca vreau sa fac u plugin cu care sa dau Hp ce Pun in loc de "cmdGive" ?

0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 14-05-2017, 13:45:32 | Translate post to: ... (Click for more languages)

Vezi daca mai apare mesajul ala cu unknown command
Spoiler:


nu conteaza ce nume ii pui la public, poti sa pui si "freakz" in loc de "cmdgive", poti sa pui "cmdgivehp" spre ex daca vrei sa faci o comanda de dat hp


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 14-05-2017, 15:57:33 | Translate post to: ... (Click for more languages)

si Daca vreau sa fac un plugin cu care dau HP . Daca pun "set_user_health( id, 150 )" in loc de "give_item" , ii seteaza viata 150 , . Dar cum trebui sa pun ca ii dea in plus 150 Hp, ? Nu sa ii seteze 150 Hp, Sa ii dea 150 !
0 0
  
Back to top
View user's profile Send private message
destroi112

[DEV]



Status: Offline
(since 12-03-2020 22:13)
Joined: 24 May 2014
Posts: 4042, Topics: 119
Location: ---------

Reputation: 515.9
Votes: 118

   
Post Posted: 14-05-2017, 16:36:34 | Translate post to: ... (Click for more languages)

Ai nevoie sa folosesti 2 argumente si unul sa fie de tip string (fiind numele playerului) si altul de tip int reprezentand hp-ul si la set_user_health o sa folosesti indexul playerului si variabila int pentru health.


Retired from Amxmodx

0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 14-05-2017, 17:09:04 | Translate post to: ... (Click for more languages)

DANNY* wrote:
si Daca vreau sa fac un plugin cu care dau HP . Daca pun "set_user_health( id, 150 )" in loc de "give_item" , ii seteaza viata 150 , . Dar cum trebui sa pun ca ii dea in plus 150 Hp, ? Nu sa ii seteze 150 Hp, Sa ii dea 150 !


faci asa: set_user_health(arg, get_user_health(arg) + 150)
unde arg = tinta

ar veni asa:
Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 14-05-2017, 21:08:01 | Translate post to: ... (Click for more languages)

Deci , am facut pluginul asta , si apare eroarea asta la compilare dc?


Sursa

Spoiler:


Code:
giveitem.sma(11) : error 017: undefined symbol "cmd_acces"
giveitem.sma(11) : warning 215: expression has no effect
giveitem.sma(11) : error 001: expected token: ";", but found ")"
giveitem.sma(11) : error 029: invalid expression, assumed zero
giveitem.sma(11) : fatal error 107: too many error messages on one line

0 0
  
Back to top
View user's profile Send private message
TwisTer

[GOOGLE SEARCHER]



Status: Offline
(since 17-05-2023 01:23)
Joined: 04 May 2007
Posts: 6962, Topics: 147
Location: Romania

Reputation: 2724.4
Votes: 231

 
Post Posted: 16-05-2017, 09:52:31 | Translate post to: ... (Click for more languages)

Concentrat doar pe erori, codul in sine nu am verificat daca functioneaza, dar o sa faci tu asta :




Spoiler:



giveitem.sma(11) : error 017: undefined symbol "cmd_acces" greseala de sintaxa e cmd_acess cu 2 s.

giveitem.sma(11) : error 001: expected token: ";", but found ")" read_argv(1, arg, 31 greseala de sintaxa ai uitat sa inchizi paranteza ")"

return PLUGIN_hANDLED -> greseala de sintaxa e case sensitive, trebuie sa scrii cu H mare.



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 16-05-2017, 13:06:18 | Translate post to: ... (Click for more languages)

MS Twister alea erau greselile ! Si daca vreau sa setez eu cat HP ? Adica sa fie asa : amx_hp danny 20 sau amx_hp danny 40 Cum trebui sa fac ? ce pun in loc de \"set_user_health(player, get_user_health(player) + 150) \"?
0 0
  
Back to top
View user's profile Send private message
ZPLegendary

[Mentally Stable]



Status: Offline
(since 03-10-2019 20:59)
Joined: 13 Jan 2017
Posts: 142, Topics: 7
Location: Polovragi, GJ

Reputation: 15.4
Votes: 17

     
Post Posted: 16-05-2017, 21:29:16 | Translate post to: ... (Click for more languages)

Poftim.
Scrii amx_hp numele cantitatea
Respectivului jucator i se va seta cantitatea de HP pe care o doresti, nu i se va adauga HP in plus, daca doresti iti fac sa ii adauge hp.

Spoiler:


Be the one, not anyone.
Currently working on Zombie Legendary 8.1


0 0
  
Back to top
View user's profile Send private message
DANNY*

[Mentally Stable]



Status: Offline
(since 26-04-2018 11:28)
Joined: 08 Feb 2017
Posts: 161, Topics: 28
Location: Romania

Reputation: 26.7
Votes: 1

Post Posted: 16-05-2017, 21:50:06 | Translate post to: ... (Click for more languages)

apare asta in consola \"I-ai setat HP-ul lui DANNY* in 2DANNY*\" Cum fac sa apara \"Ai primit x Hp . Unde x = valuare ! . In loc de \"new tinta\" pot folosi \"new arg? . In loc de viata pot folosi \"health\" ? De ce viata[5] ? Si nu 6, 7, 8 , etc ? Caracterele \"\\\" sunt necesare ?


Poti explica putin noile funtii adaugate ?

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  
Go to page 1, 2  Next    


The time now is 20-04-2024, 15:32:09
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x