Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-06-08, 15:18


Plastik

Uczeń PAWN






Wiek: 35
Na forum: 4754 dni
Posty: 36
Nick w MP: Sp3nNc3r

Piwa: 1337

Respekt: 48,6

Ostrzeżeń: 80%
siemano potrzebuj? pomocy jak wykonac dialog aby na chacie wyswietla?o sie jak gracz np Edek wejdzie na skina policji to na chacie pisze Gracz Edek rozpocczo? prac? jako Policjant.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 15:24


KatieM







Wiek: 32
Na forum: 4868 dni
Posty: 82
Nick w MP: _DMCy

Piwa: 293

Respekt: 85

Ostrzeżeń: 20%
Kodzik dajesz przyk?adowo w komendzie wraz ze zmian? skina.

Kod:

new buf [ 256 ];
format (buf, sizeof(buf), "Gracz %s rozpoczyna prace jako policjant." GetPlayerNick(playerid));
SendClientMessageToAll(0, buf);


Pobieranie nicku gracza - je?eli u?ywasz swojej, ta jest nie potrzebna:

Kod:

GetPlayerNick(playerid) {
static pName[MAX_PLAYER_NAME];
pName[0] = 0;
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 15:59


Plastik

Uczeń PAWN






Wiek: 35
Na forum: 4754 dni
Posty: 36
Nick w MP: Sp3nNc3r

Piwa: 1337

Respekt: 48,6

Ostrzeżeń: 80%
"KatieM" napisał/a:

Kodzik dajesz przyk?adowo w komendzie wraz ze zmian? skina.

Kod:

new buf [ 256 ];
format (buf, sizeof(buf), "Gracz %s rozpoczyna prace jako policjant." GetPlayerNick(playerid));
SendClientMessageToAll(0, buf);



Czyli ze ten kod daje gdzie? tutaj ?? ?

Kod:

if(dialogid == 13766 && response) //Spawn gliniarza
{
if(response)
{
switch(listitem)
{
case 0:
{
glinalv[playerid] = 1;
SetPlayerPos(playerid,2632.9902,1717.3845,11.0234);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jeste? Policjantem!", "/menu Menu Policji\n/kpol Komendy Policji\n \n /tary Taryfikator", "OK", "Wroc");
}
case 1:
{
glinals[playerid] = 1;
SetPlayerPos(playerid,1568.9354,-1691.7576,7.2181);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jeste? Policjantem!", "/menu Menu Policji\n/kpol Komendy Policji\n \n /tary Taryfikator", "OK", "Wroc");
}
case 2:
{
glinasf[playerid] = 1;
SetPlayerPos(playerid,-1615.6075,685.7942,7.1875);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jeste? Policjantem!", "/menu Menu Policji\n/kpol Komendy Policji\n \n /tary Taryfikator", "OK", "Wroc");
}
}
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 16:20


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Masz komend? na logowanie si? na policjanta? Tam to wrzu?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 16:32


Plastik

Uczeń PAWN






Wiek: 35
Na forum: 4754 dni
Posty: 36
Nick w MP: Sp3nNc3r

Piwa: 1337

Respekt: 48,6

Ostrzeżeń: 80%
Chodzi ci o Spawn ?? ?

[ Dodano: 2013-06-08, 16:36 ]
Nie kumam wyt?umacz bardziej :D jak by? m?g? dam Piwo

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 16:36


Pyramid Head

-- TruckeR --






Wiek: 29
Na forum: 5006 dni
Posty: 16
Nick w MP: [V]ektor

Piwa: 6

Respekt: 69

Wklej to tam gdzie skin si? spawnuje i rozpoczyna gre, tj. w OnPlayerSpawn

Podpis

NO PAIN. NO GAIN.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 16:41


Plastik

Uczeń PAWN






Wiek: 35
Na forum: 4754 dni
Posty: 36
Nick w MP: Sp3nNc3r

Piwa: 1337

Respekt: 48,6

Ostrzeżeń: 80%
Czyli tutaj tak ?

Kod:

public OnPlayerSpawn(playerid)
{if(!zalogowany[playerid]) return SendClientMessage(playerid, COLOR_RED, "Nie jeste? zalogowany!");
SetPlayerInterior(playerid, 0);
//Z Wybiera?ki
if(!zalogowany[playerid]) return SendClientMessage(playerid, COLOR_RED, "Nie jeste? zalogowany!");
PlayerInfo[playerid][SpawnAngle] = 0.0;
PlayerInfo[playerid][SpawnDance] = true;
KillTimer( PlayerInfo[playerid][SpawnTimer] );
//PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
SetCameraBehindPlayer(playerid);
if(!PingPepsi[playerid][0]) PingPepsi[playerid][1] = true;
SetPlayerColor(playerid, COLOR_LIGHTBLUE);
if(zalogowany[playerid] == 0){ }

StopAudioStreamForPlayer(playerid);
audiowspawn[playerid]=0;


Sory ?e tak truje no ale dzis nie my?le sorka jeszcze raz bo niemoge ju?...:)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-08, 22:28


Maxvell

d_b






Wiek: 26
Na forum: 4771 dni
Posty: 83
Nick w MP: Kotlet

Piwa: 270

Respekt: 65

Bosh, spawn skina policji nie wybieralki :) inny public OnPlayerSpawn

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-12, 16:37


Plastik

Uczeń PAWN






Wiek: 35
Na forum: 4754 dni
Posty: 36
Nick w MP: Sp3nNc3r

Piwa: 1337

Respekt: 48,6

Ostrzeżeń: 80%
a gdybym chcia? to na wszystkie skiny to tak samo wklejam do reszty

[ Dodano: 2013-06-12, 16:39 ]
czyli tutaj jak te cmd wkleji?em ?? ?
Kod:

if(dialogid == 13766 && response) //Spawn gliniarza
{
if(response)
{
switch(listitem)
{
case 0:
{
glinalv[playerid] = 1;
SetPlayerPos(playerid,2632.9902,1717.3845,11.0234);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jeste? Policjantem!", "/menu Menu Policji\n/kpol Komendy Policji\n \n /tary Taryfikator", "OK", "Wroc");
}
case 1:
{
glinals[playerid] = 1;
SetPlayerPos(playerid,1568.9354,-1691.7576,7.2181);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jeste? Policjantem!", "/menu Menu Policji\n/kpol Komendy Policji\n \n /tary Taryfikator", "OK", "Wroc");
}
case 2:
{
glinasf[playerid] = 1;
SetPlayerPos(playerid,-1615.6075,685.7942,7.1875);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Jeste? Policjantem!", "/menu Menu Policji\n/kpol Komendy Policji\n \n /tary Taryfikator", "OK", "Wroc");
}
}
}
return 1;
}


[ Dodano: 2013-06-12, 16:56 ]
Mam Errory takie jak
Kod:

C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25416) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25418) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25427) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25455) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25456) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25486) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25487) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25493) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25495) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25501) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25509) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25517) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25540) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25548) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25552) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25555) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25558) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25561) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25564) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25567) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25570) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25573) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25576) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25579) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25582) : error 079: inconsistent return types (array & non-array)
C:\Documents and Settings\Ciotson\Pulpit\Mapa4F.pwn(25585) : error 079: inconsistent return types (array & non-array)

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


26 Errors.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-06-12, 21:53


black_mode

mrdrifter ;-)






Wiek: 29
Na forum: 4740 dni
Posty: 20

Piwa: 12

Respekt: 66

Ostrzeżeń: 100%
Daj liniki wy?ej i ni?ej. i kt?ra to dok?adnie 25416

Podpis
jestę drifterę.
Postaw piwo autorowi tego posta
 

 
Tagi: gracz :: rozpoczoł :: pracę :: jako
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Gracz %s Rozpoczoł pracę jako %d Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku