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

Wysłany: 2013-02-24, 10:41


Herates







Wiek: 31
Na forum: 5168 dni
Posty: 16
Nick w MP: Herates

Piwa: 11

Respekt: 50

Siema, chcia?em zrobi? system logowania si ? na admina jednak wyskakuje mi masa b??d?w ;/

Kod:
Kod:

COMMAND:admlog(playerid, cmdtext[])
{
if(!Player[playerid][Logged] || (!IsPlayerAdmin(playerid) && Player[playerid][Admin] < 1))
{
SendClientMessage(playerid, COLOR_ERROR, " ›› |b??d| Nie jeste? administratorem.");
return 1;
}

if(Player[playerid][OnDuty])
{
Player[playerid][OnDuty] = false;
SetPlayerColor(playerid, COLOR_ADMIN);
SendClientMessage(playerid, COLOR_GREEN, " ›› |info| Nie jeste? ju? na s?u?bie. By powr?ci? do s?u?by ponownie wpisz /admlog .");
}
else
{
Player[playerid][OnDuty] = true;
SendClientMessage(playerid, COLOR_GREEN, " ›› |info| Jeste? na s?u?bie. Je?li nie chcesz by? na s?u?bie ponownie wpisz /admlog .");
}

return 1;
}


B??d
C:\Documents and Settings\Computer\Pulpit\SAMP\gamemodes\PTS.pwn(255) : error 017: undefined symbol "Player"
C:\Documents and Settings\Computer\Pulpit\SAMP\gamemodes\PTS.pwn(255) : warning 215: expression has no effect
C:\Documents and Settings\Computer\Pulpit\SAMP\gamemodes\PTS.pwn(255) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Computer\Pulpit\SAMP\gamemodes\PTS.pwn(255) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Computer\Pulpit\SAMP\gamemodes\PTS.pwn(255) : 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.

U?ywane includy:
#include <a_samp>
#include <zcmd>
#include <dudb>
#include <dutils>
#include <dini>
#include <sscanf>

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-02-24, 10:50


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

Respekt: 651,8
Respekt: 651,8Respekt: 651,8

No wiesz, jak si? nieumiej?tnie podkrada kod, to p??niej takie rzeczy mo?na dostrzec. :<

Na g?rze mapy:

Kod:

enum pInf
{
bool:OnDuty,
bool:Logged
}; new Player[MAX_PLAYERS][pInf];


Postaw piwo autorowi tego posta
 

 
Tagi: log :: admina
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] Log na admina 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