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

Wysłany: 2014-08-28, 19:27


Loghain







Wiek: 29
Na forum: 4506 dni
Posty: 51

Piwa: 1

Respekt: 50

Mam ma?y problem i nie wiem co jest nie tak ;/
A mianowicie tu:
Pawn
Player(playerid(Tutorial)) = 0;


A b??dy:
Kod:


truckpl.pwn(121) : error 017: undefined symbol "Player"
truckpl.pwn(121) : warning 215: expression has no effect
truckpl.pwn(121) : error 001: expected token: ";", but found ")"
truckpl.pwn(121) : error 029: invalid expression, assumed zero
truckpl.pwn(121) : fatal error 107: too many error messages on one line


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-28, 21:01


Haribo

Taki Żeluś






Wiek: 29
Na forum: 4680 dni
Posty: 224
Nick w MP: Haribo

Piwa: 2818

Respekt: 220,2
Respekt: 220,2Respekt: 220,2

Ostrzeżeń: 60%
Jak ju? tak serio nie potrafisz angielskiego, to...

https://translate.google.pl/#en/pl/undefined%20symbol%20%22Player%22

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-28, 22:32


Virelox







Wiek: 28
Na forum: 4814 dni
Posty: 156
Nick w MP: Virelox

Piwa: 623

Respekt: 120,5
Respekt: 120,5

#undef MAX_PLAYERS
#define MAX_PLAYERS "liczba slotow twojego serwera"
#define Player[MAX_PLAYERS];

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-29, 10:33


Loghain







Wiek: 29
Na forum: 4506 dni
Posty: 51

Piwa: 1

Respekt: 50

UP to nic nie da?o.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-29, 11:07


kazami

Pawner/PTG






Wiek: 27
Na forum: 4596 dni
Posty: 405
Nick w MP: adi888

Piwa: 43

Respekt: 76,3

Ostrzeżeń: 80%
co nam daje ten kod

Pawn

Player(playerid(Tutorial)) = 0;


podaj nam wi?cej tego kodu czyli mo?e pisa?e? co? typu new co?tam;

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-29, 15:29


Loghain







Wiek: 29
Na forum: 4506 dni
Posty: 51

Piwa: 1

Respekt: 50

Pawn
#define DIALOG_TUTORIAL 4
#define TUTORIAL_SIZE 5
#undef MAX_PLAYERS
#define MAX_PLAYERS "50"
#define Player[MAX_PLAYERS];

enum PInfo
    {
    Tutorial,
    bool:TutorialCmd,
    }

public OnPlayerConnect(playerid)
{
    Player(playerid(Tutorial)) = 0;
    Player(playerid(TutorialCmd)) = false;
   return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    ShowTutorialDialog(playerid);
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    if(dialogid == DIALOG_TUTORIAL)
    {
        if(!response || Player[playerid][Tutorial] >= TUTORIAL_SIZE)
        {
            EndTutorialForPlayer(playerid);
            if(!Player[playerid][TutorialCmd])
                ShowCityDialog(playerid);
            Player[playerid][TutorialCmd] = false;
            return 1;
        }
        
        if(Player[playerid][Tutorial] == 0)
        {
            StartTutorialForPlayer(playerid);
            return 1;
        }
        
        Player[playerid][Tutorial]++;
        ShowTutorialDialog(playerid);
    }
return 1;
}


I na ko?cu mapy:





Kod z mapy WiceWersy PES

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-01, 08:36


kazami

Pawner/PTG






Wiek: 27
Na forum: 4596 dni
Posty: 405
Nick w MP: adi888

Piwa: 43

Respekt: 76,3

Ostrzeżeń: 80%
nw czy to co? da ale mo?e definicja z?a ?

Pawn

#define Player[MAX_PLAYERS]


[ Dodano: 2014-09-01, 08:37 ]
aha a gdzie masz co? takiego od enuma

Pawn

new costam[MAX_PLAYERS][pInfo]; 


Postaw piwo autorowi tego posta
 

 
Tagi: tutorial
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN 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