Wysłany: 2017-09-03, 22:00
JameS18
Wiek: 27 Na forum: 3211 dni Posty: 20
Nick w MP: JameS
Witam. Powie mi kto? jak ustwi? tag przed nickiem? Chodzi o to, ?e po wpisaniu /zw przed nickiem jest tag: [ZW] a po wpisaniu /jj ten tag znika? Prosze o szybk? pomoc.
Wysłany: 2017-09-03, 22:39
Combacior
Wiek: 29 Na forum: 5795 dni Posty: 1516
Piwa : 2161
W komendzie /zw funkcja strins, w komendzie /jj funkcja strins.
Wysłany: 2017-09-03, 22:54
JameS18
Wiek: 27 Na forum: 3211 dni Posty: 20
Nick w MP: JameS
A m?g? by? poda? mi przyklad tej funkcji?
Wysłany: 2017-09-04, 09:21
Grace
Kierowca Pralki
Wiek: 24 Na forum: 3436 dni Posty: 168
Nick w MP: Grace
Piwa : 1031
Akurat to co chcia?e?, jest na wikipedii tej funkcji: http://wiki.sa-mp.com/wiki/Strins
przyk?ad:
Pawn // Add an [AFK] tag to the start of players' names
new pName [ MAX_PLAYER_NAME + 1 ];
GetPlayerName ( playerid , pName , MAX_PLAYER_NAME );
strins ( pName , "[AFK]" , 0 );
SetPlayerName ( playerid , pName );
// WARNING: Players with names that are 20+ characters long can not have an [AFK] tag, as that would make their name 25 characters long and the limit is 24.
Wysłany: 2017-09-04, 14:44
JameS18
Wiek: 27 Na forum: 3211 dni Posty: 20
Nick w MP: JameS
Kod:
error 003: declaration of a local variable must appear in a compound block
error 010: invalid function or declaration
Wysłany: 2017-09-04, 15:11
Virex_PL
Głos rozsądku
Wiek: 26 Na forum: 4187 dni Posty: 170
Nick w MP: Virex_PL
Piwa : 31
Mo?e podasz kod i kt?re to linijki ?
Wysłany: 2017-09-04, 16:11
Michatex
PAWN Dev.
Wiek: 24 Na forum: 3848 dni Posty: 90
Nick w MP: Michatex
Piwa : 1153
Musisz doda? to w 'OnPlayerConnect'.
Tagi: tag :: przed :: nickiem
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: