Wysłany: 2013-06-08, 15:18
Plastik
Uczeń PAWN
Wiek: 35 Na forum: 4754 dni Posty: 36
Nick w MP: Sp3nNc3r
Piwa : 1337
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.
Wysłany: 2013-06-08, 15:24
KatieM
Wiek: 32 Na forum: 4868 dni Posty: 82
Nick w MP: _DMCy
Piwa : 293
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;
}
Wysłany: 2013-06-08, 15:59
Plastik
Uczeń PAWN
Wiek: 35 Na forum: 4754 dni Posty: 36
Nick w MP: Sp3nNc3r
Piwa : 1337
"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;
}
Wysłany: 2013-06-08, 16:20
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
Masz komend? na logowanie si? na policjanta? Tam to wrzu?.
Wysłany: 2013-06-08, 16:32
Plastik
Uczeń PAWN
Wiek: 35 Na forum: 4754 dni Posty: 36
Nick w MP: Sp3nNc3r
Piwa : 1337
Chodzi ci o Spawn ?
[ Dodano : 2013-06-08, 16:36 ]
Nie kumam wyt?umacz bardziej jak by? m?g? dam Piwo
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
Wklej to tam gdzie skin si? spawnuje i rozpoczyna gre, tj. w OnPlayerSpawn
Wysłany: 2013-06-08, 16:41
Plastik
Uczeń PAWN
Wiek: 35 Na forum: 4754 dni Posty: 36
Nick w MP: Sp3nNc3r
Piwa : 1337
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?...:)
Wysłany: 2013-06-08, 22:28
Maxvell
d_b
Wiek: 26 Na forum: 4771 dni Posty: 83
Nick w MP: Kotlet
Piwa : 270
Bosh, spawn skina policji nie wybieralki inny public OnPlayerSpawn
Wysłany: 2013-06-12, 16:37
Plastik
Uczeń PAWN
Wiek: 35 Na forum: 4754 dni Posty: 36
Nick w MP: Sp3nNc3r
Piwa : 1337
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.
Wysłany: 2013-06-12, 21:53
black_mode
mrdrifter ;-)
Wiek: 29 Na forum: 4740 dni Posty: 20
Piwa : 12
Daj liniki wy?ej i ni?ej. i kt?ra to dok?adnie 25416
Tagi: gracz :: rozpoczoł :: pracę :: jako
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: