[Ajuda]Ajuda rapida
#1

Preciso de ajuda aqui, й simples e rapido, mas n sei como fazer ;X

tem um comando aqui, que somente pode ser acessado em um lugar, eu quero mudar para sуmente vip poder usar nesse local:

Comando agora:
pawn Код:
if(!PlayerToPoint(2.0, playerid, 1521.7517,-1902.9877,14.356)) return SendClientMessage(playerid, -1, "Vocк nгo estб no local adequando para blindar seu carro ou nгo й VIP!");
Como precisa ser:
pawn Код:
if (PlayerInfo[playerid][pDonateRank] > 0 && PlayerToPoint(15.0, playerid, 998.40002441,-2212.00000000,15.00000000)) {
Mas tem q mandar a mensagem, e eu n sei aonde por..
Reply
#2

se tiver certo esse if ai.. faz assim
pawn Код:
if (PlayerInfo[playerid][pDonateRank] > 0 && PlayerToPoint(15.0, playerid, 998.40002441,-2212.00000000,15.00000000))
{
          //Mensagem SendClientMessage ou oq vc quiser
          return 1;
}
Se ajudei +rep ^^
Reply
#3

pawn Код:
if(!PlayerToPoint(2.0, playerid, 1521.7517,-1902.9877,14.356) && PlayerInfo[playerid][pDonateRank] == 0) return SendClientMessage(playerid, -1, "Vocк nгo estб no local adequando para blindar seu carro ou nгo й VIP!");
Reply
#4

pawn Код:
if (PlayerInfo[playerid][pDonateRank] > 0 && PlayerToPoint(15.0, playerid, 998.40002441,-2212.00000000,15.00000000))
{
//Funcao aqui....      
}
else
{
SendClientMessage(playerid, -1, "Voce nгo e vip manolo, some daqui -q);  
}

Se fiz errado fala ai fiz Aqui mesmo , e to sem durmi desde on‌tem =)
Reply
#5

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
pawn Код:
if (PlayerInfo[playerid][pDonateRank] > 0 && PlayerToPoint(15.0, playerid, 998.40002441,-2212.00000000,15.00000000))
{
//Funcao aqui....      
}
else
{
SendClientMessage(playerid, -1, "Voce nгo e vip manolo, some daqui -q);  
}

Se fiz errado fala ai fiz Aqui mesmo , e to sem durmi desde on‌tem =)
NoLife,
Reply
#6

Pedro Miranda:
pawn Код:
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 001: expected token: ";", but found ")"
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : fatal error 107: too many error messages on one line
Reply
#7

Quote:
Originally Posted by OwnPlaay
Посмотреть сообщение
NoLife,
Wtf ? Da quote so pra ganha um post .-.
Que foi ahsuahsuas emo nb -q
Reply
#8

Quote:
Originally Posted by Felipe_Wesker
Посмотреть сообщение
Pedro Miranda:
pawn Код:
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 001: expected token: ";", but found ")"
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : fatal error 107: too many error messages on one line
Tente usar assim

pawn Код:
if(!PlayerToPoint(2.0, playerid, 1521.7517,-1902.9877,14.356 && PlayerInfo[playerid][pDonateRank] == 0) return SendClientMessage(playerid, -1, "Vocк nгo estб no local adequando para blindar seu carro ou nгo й VIP!");
Reply
#9

deu 6 errors
Reply
#10

Quote:
Originally Posted by Felipe_Wesker
Посмотреть сообщение
Pedro Miranda:
pawn Код:
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : warning 215: expression has no effect
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 001: expected token: ";", but found ")"
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Desktop\Servers\Believe\gamemodes\BRP.pwn(28067) : fatal error 107: too many error messages on one line
Poste a linha
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)