SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 11/07/2020, 01:49 PM   #1
HusteD
Huge Clucker
 
Join Date: Oct 2017
Posts: 204
Reputation: 0
Default Quando o player logar

Olá queria saber como faz pra ao player conectar no servidor no caso OnPlayerConnect
Aparecer assim
Olá, nick seu último login foi xx/xx/xxxx às 00:00
HusteD is offline   Reply With Quote
Old 11/07/2020, 03:10 PM   #2
Hazard
Big Clucker
 
Hazard's Avatar
 
Join Date: May 2020
Location: Brazil
Posts: 152
Reputation: 3
Default Re: Quando o player logar

usa o search man https://forum.sa-mp.com/showthread.php?t=570169
Hazard is offline   Reply With Quote
Old 11/07/2020, 03:54 PM   #3
1sbedx
Huge Clucker
 
Join Date: Dec 2015
Posts: 366
Reputation: 50
Default Re: Quando o player logar

Timestamp
1sbedx is offline   Reply With Quote
Old 11/07/2020, 04:24 PM   #4
smith
Huge Clucker
 
smith's Avatar
 
Join Date: Aug 2019
Location: São Paulo
Posts: 256
Reputation: 1
Default Re: Quando o player logar

pawn Code:
new str[128];
new pNome[MAX_PLAYER_NAME];
GetPlayerName(playerid, pNome, sizeof(pNome));
format(str, sizeof(str),"Olá, %s seu ultimo login foi %i", pNome(playerid),variavel[playerid][data]);
SendClientMessage(playerid, -1, str);
__________________
Não vivo para agradar ninguém, pois quando for fazer as minhas escolhas terei de as enfrentar sozinho.
smith is offline   Reply With Quote
Old 11/07/2020, 08:26 PM   #5
HusteD
Huge Clucker
 
Join Date: Oct 2017
Posts: 204
Reputation: 0
Default Re: Quando o player logar

C:\Users\enzoc\OneDrive\Área de Trabalho\GameMode Base DOF2\gamemodes\Pave.pwn(663) : error 012: invalid function call, not a valid address
C:\Users\enzoc\OneDrive\Área de Trabalho\GameMode Base DOF2\gamemodes\Pave.pwn(663) : warning 215: expression has no effect
C:\Users\enzoc\OneDrive\Área de Trabalho\GameMode Base DOF2\gamemodes\Pave.pwn(663) : error 001: expected token: ";", but found ")"
C:\Users\enzoc\OneDrive\Área de Trabalho\GameMode Base DOF2\gamemodes\Pave.pwn(663) : error 029: invalid expression, assumed zero
C:\Users\enzoc\OneDrive\Área de Trabalho\GameMode Base DOF2\gamemodes\Pave.pwn(663) : fatal error 107: too many error messages on one line

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


4 Errors.
HusteD is offline   Reply With Quote
Old 11/07/2020, 09:00 PM   #6
k2bi
Big Clucker
 
k2bi's Avatar
 
Join Date: Sep 2017
Location: Novo Horizonte - SP
Posts: 191
Reputation: 5
Default Re: Quando o player logar

Qual a linha do erro?
k2bi is offline   Reply With Quote
Old 11/07/2020, 09:08 PM   #7
HusteD
Huge Clucker
 
Join Date: Oct 2017
Posts: 204
Reputation: 0
Default Re: Quando o player logar

format(str, sizeof(str),"Olá, %s seu ultimo login foi %i", pNome(playerid),variavel[playerid][data]);
HusteD is offline   Reply With Quote
Old 11/07/2020, 09:12 PM   #8
k2bi
Big Clucker
 
k2bi's Avatar
 
Join Date: Sep 2017
Location: Novo Horizonte - SP
Posts: 191
Reputation: 5
Default Re: Quando o player logar

"variavel[playerid][data]" << Ele colocou "variavel" como exemplo... no caso você deve substituir pela variavel que tu colocou para armazenar o ultimo login do player


>>> https://forum.sa-mp.com/showthread.php?t=570169 <<<
k2bi 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
[Ajuda] Como Pegar o link correto da musica para quando o player logar tocar a musica lucaspilar Português/Portuguese 4 28/05/2013 06:27 PM
[Ajuda] Quero sicronizar player quando logar Hyuuga Português/Portuguese 5 20/04/2013 02:50 AM
[Ajuda] [FS] Quando um player logar o admin ver ip netogba Português/Portuguese 3 04/10/2012 12:02 PM
[Pedido] Quando um player logar aparecer seu IP. Ley Português/Portuguese 5 19/08/2012 09:21 PM
[Ajuda] Comando Quando Logar IILeonII Português/Portuguese 1 03/08/2011 05:16 PM


All times are GMT. The time now is 02:27 AM.


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