SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Română/Romanian

Reply
 
Thread Tools Display Modes
Old 29/06/2011, 08:03 PM   #1
PlayNoLimit
Little Clucker
 
Join Date: Apr 2011
Posts: 34
Reputation: 0
Default salut

Cum pot face comanda /arme sa mearga doar pt Power user??

Code:
 if(strcmp(cmd, "/arme", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	  	 GivePlayerWeapon(playerid, 9, 5000);
	  	 GivePlayerWeapon(playerid, 16, 5000);
	  	 GivePlayerWeapon(playerid, 26, 5000);
	  	 GivePlayerWeapon(playerid, 27, 5000);
	  	 GivePlayerWeapon(playerid, 29, 5000);
	  	 GivePlayerWeapon(playerid, 30, 5000);
	  	 GivePlayerWeapon(playerid, 34, 5000);
	  	 GivePlayerWeapon(playerid, 35, 5000);
	  	 GivePlayerWeapon(playerid, 36, 5000);
	  	 GivePlayerWeapon(playerid, 37, 5000);
	  	 GivePlayerWeapon(playerid, 38, 5000);
	  	 GivePlayerWeapon(playerid, 39, 5000);
	  	 GivePlayerWeapon(playerid, 40, 5000);
	  	 GivePlayerWeapon(playerid, 42, 5000);
	  	 GivePlayerWeapon(playerid, 24, 5000);
	  }
	  return 1;
	}
PlayNoLimit is offline   Reply With Quote
Old 29/06/2011, 08:06 PM   #2
[NoV]LaZ
High-roller
 
Join Date: May 2008
Posts: 1,460
Reputation: 85
Default Re: salut

pawn Code:
if (!strcmp(cmd, "/arme", true))
{
    if (Power user) {
        // inarmeaza
    }
    else {
        // cel care a tastat comanda nu-i 'power user'
    return 0;
    }
}
[NoV]LaZ is online now   Reply With Quote
Old 29/06/2011, 08:14 PM   #3
PlayNoLimit
Little Clucker
 
Join Date: Apr 2011
Posts: 34
Reputation: 0
Default Re: salut

acum imi da erorile astea



Code:
\Desktop\Testt\GAMEMO~1\pnl.pwn(2982) : error 004: function "GivePlayerCash" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3011) : error 004: function "GivePlayerCash" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3047) : error 004: function "SafeResetPlayerWeapons" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3048) : error 004: function "SafeGivePlayerWeapon" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3075) : error 004: function "SafeResetPlayerWeapons" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3598) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3610) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3622) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3634) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3638) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3650) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3654) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3658) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3662) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3666) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3670) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3674) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3678) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3690) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3694) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3698) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3702) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3706) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3718) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3722) : error 004: function "PlayerToPoint" is not implemented
\Desktop\Testt\GAMEMO~1\pnl.pwn(3726) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
PlayNoLimit is offline   Reply With Quote
Old 29/06/2011, 09:41 PM   #4
Roberteu11
Huge Clucker
 
Roberteu11's Avatar
 
Join Date: Oct 2010
Location: Romania
Posts: 322
Reputation: 1
Default Re: salut

Foloseste include-urile de 0.3C Le vei gasi in arhiva pe care o descarci de pe www.sa-mp.com si le vei gasi in folderul Pawno > Includes
Roberteu11 is offline   Reply With Quote
Old 30/06/2011, 04:45 AM   #5
Skaizo
Gangsta
 
Skaizo's Avatar
 
Join Date: Sep 2010
Location: Romanian
Posts: 858
Reputation: 15
Default Re: salut

[NoV]Laz pentru ce ai pus return 0 ca comanda o sa spune Unknown command
__________________
My works(Romanian)
Thanks To Jansish For Signature
[Tutorial]rezolvarea eroare pawno failed to set data for si File or function is not found
I am Russian?
No
You are Russian army fuck?
Yes but no Fuck
Lol )
Skaizo is offline   Reply With Quote
Old 30/06/2011, 07:09 AM   #6
[NoV]LaZ
High-roller
 
Join Date: May 2008
Posts: 1,460
Reputation: 85
Default Re: salut

Daca nu-i Power user ii da Unknown Command.

@PlayNoLimit: Conform erorilor, ai niste functii care nu sunt 'implementate'. Va trebui sa descarci inca odata gamemode-ul, sau sa cauti functiile care lipsesc, sau sa le faci singur.
[NoV]LaZ is online now   Reply With Quote
Old 30/06/2011, 10:16 AM   #7
Skaizo
Gangsta
 
Skaizo's Avatar
 
Join Date: Sep 2010
Location: Romanian
Posts: 858
Reputation: 15
Default Re: salut

adauga asta in jos script:
Code:
PlayerToPoint(Float:radius, playerid, Float:X, Float:Y, Float:Z)
{
  new Float:oldpos[3], Float:temppos[3];
  GetPlayerPos(playerid, oldpos[0], oldpos[1], oldpos[2]);
  temppos[0] = (oldpos[0] -X);
  temppos[1] = (oldpos[1] -Y);
  temppos[2] = (oldpos[2] -Z);
  if(((temppos[0] < radius) && (temppos[0] > -radius)) && ((temppos[1] < radius) && (temppos[1] > -radius)) && ((temppos[2] < radius) && (temppos[2] > -radius)))
  {
    return true;
  }
  return false;
}
si Modifica in felul urmator :

GivePlayerCash --- GivePlayerMoney
SafeResetPlayerWeapons --- ResetPlayerWeapons
SafeGivePlayerWeapon --- GivePlayerWeapon
__________________
My works(Romanian)
Thanks To Jansish For Signature
[Tutorial]rezolvarea eroare pawno failed to set data for si File or function is not found
I am Russian?
No
You are Russian army fuck?
Yes but no Fuck
Lol )
Skaizo is offline   Reply With Quote
Old 30/06/2011, 03:06 PM   #8
PlayNoLimit
Little Clucker
 
Join Date: Apr 2011
Posts: 34
Reputation: 0
Default Re: salut

Multumesc am rezolvat
PlayNoLimit is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Salut PlayNoLimit Română/Romanian 4 17/05/2011 11:36 AM
Salut! SpriTe Română/Romanian 0 17/12/2010 08:13 PM
Salut KMM Română/Romanian 1 04/12/2010 06:22 AM
Salut Varkoll_ Français/French 10 20/11/2010 01:20 PM
Salut :D SkillZ_Max Română/Romanian 2 07/06/2010 06:34 PM


All times are GMT. The time now is 10:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.