SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 08/10/2012, 10:47 PM   #1
Waldrey
Big Clucker
 
Waldrey's Avatar
 
Join Date: May 2012
Posts: 74
Reputation: 0
Thumbs up Pickups error

ERROS
Code:
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(419) : error 017: undefined symbol "PlayerToPoint"
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(421) : warning 217: loose indentation
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(421) : error 029: invalid expression, assumed zero
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(421) : warning 215: expression has no effect
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(421) : error 001: expected token: ";", but found ")"
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(421) : error 029: invalid expression, assumed zero
C:\Users\Ingot\Desktop\WaldreyProject\SERVIDOR\gamemodes\rpg.pwn(421) : fatal error 107: too many error messages on one line
-

LINHAS

Quote:
if(PlayerToPoint(1.0, playerid,1553.8048,-1675.2073,16.1953) - 419
SetPlayerInterior(playerid, ,=0); - 421
COMO COLOCAR ESCRITO: "Departamento Policial"
__________________
wSAMP ~ RPG!
Desenvolvimento: Interiores
Waldrey is offline   Reply With Quote
Old 08/10/2012, 10:50 PM   #2
Diogo123
High-roller
 
Diogo123's Avatar
 
Join Date: Aug 2011
Location: No Mundo de SAO ;)
Posts: 1,143
Reputation: 116
Default Re: Pickups error

SetPlayerInterior(playerid( pra que duas virgulas o.O ) , , = 0 ) ;
__________________
Desenvolvimentos:

New Life RP
Assassins City Freeroam BR [ 39%]

Atualmente criando sistema de eventos
Comming ...
Diogo123 is offline   Reply With Quote
Old 08/10/2012, 11:11 PM   #3
Waldrey
Big Clucker
 
Waldrey's Avatar
 
Join Date: May 2012
Posts: 74
Reputation: 0
Default Re: Pickups error

Diogo eu peguei em um tutorial xD
__________________
wSAMP ~ RPG!
Desenvolvimento: Interiores
Waldrey is offline   Reply With Quote
Old 08/10/2012, 11:14 PM   #4
FenixBorn
Huge Clucker
 
FenixBorn's Avatar
 
Join Date: Aug 2012
Posts: 276
Reputation: 8
Default Re: Pickups error

SetPlayerInterior(playerid, 0);

Undefined Symbol PlayerToPoint

pawn Code:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

pawn Code:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    return 0;
}
__________________
Ajudei ? rep++ pra mim ,se me ajudar recebe tambem
FenixBorn is offline   Reply With Quote
Old 08/10/2012, 11:16 PM   #5
mau.tito
High-roller
 
mau.tito's Avatar
 
Join Date: Jan 2012
Location: Curitiba/PR
Posts: 1,984
Reputation: 223
Default Re: Pickups error

pawn Code:
if(PlayerToPoint(1.0, playerid,1553.8048,-1675.2073,16.1953)
{
SetPlayerInterior(playerid, 0);
}
__________________
PARANÁ Roleplay

Discord
mau.tito is offline   Reply With Quote
Old 08/10/2012, 11:33 PM   #6
Diogo123
High-roller
 
Diogo123's Avatar
 
Join Date: Aug 2011
Location: No Mundo de SAO ;)
Posts: 1,143
Reputation: 116
Default Re: Pickups error

SetPlayerInterior(playerid, ,=0); errado

SetPlayerInterior(playerid,0); certo '-'
__________________
Desenvolvimentos:

New Life RP
Assassins City Freeroam BR [ 39%]

Atualmente criando sistema de eventos
Comming ...
Diogo123 is offline   Reply With Quote
Old 08/10/2012, 11:48 PM   #7
zSuYaNw
Godfather
 
zSuYaNw's Avatar
 
Join Date: Apr 2010
Location: Santa Catarina
Posts: 6,840
Reputation: 672
Default Re: Pickups error

PHP Code:
#define PlayerToPoint(%0,%1,%2,%3,%4) IsPlayerInArea(%1,%0,%2,%3,%4) 
zSuYaNw 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
Pickups/3DTexts don't show on house pickups - Help ! Edvin Scripting Help 1 21/06/2012 07:50 PM
[URGENT] I need a list of pickups with thier ids The new 0.3c pickups AMEENAMEEN Scripting Help 1 14/04/2012 05:12 PM
Keep getting error on pickups. [mad]MLK Help Archive 9 16/10/2009 09:15 PM


All times are GMT. The time now is 05:59 PM.


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