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

Wysłany: 2013-03-11, 17:06


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

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

Kod:

if (strcmp(cmd, "/odblokuj", true) == 0)
{
new tmp[20];
tmp = strtok(cmdtext, index);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "U?ycie: /odblokuj <id frajera>");
if(!IsPlayerConnected(strval(tmp))) return SendClientMessage(playerid, 0, "Nie znaleziono przyrodzenia mi?dzy dwiema nogami.");

statementUseBlock[strval(tmp)] = false;
return 1;
}


Zablokuj w identyczny spos?b.

A co do u?ycia:

Kod:

if(statementUseBlock[playerid] == true) return SendClientMessage(playerid,0,"blokada wszechmocy"), 0;


+

OnPlayerConnect

Kod:

statementUseBlock[playerid] = true;


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-12, 10:35


arkopi







Wiek: 31
Na forum: 5579 dni
Posty: 177

Piwa: 60

Respekt: 50

Ostrzeżeń: 20%
4 error




C:\Documents and Settings\lukasz\Moje dokumenty\Downloads\Nowy folder\mapkaark.pwn(4886) : error 028: invalid subscript (not an array or too many subscripts): "statementUseBlock"
C:\Documents and Settings\lukasz\Moje dokumenty\Downloads\Nowy folder\mapkaark.pwn(4886) : warning 215: expression has no effect
C:\Documents and Settings\lukasz\Moje dokumenty\Downloads\Nowy folder\mapkaark.pwn(4886) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\lukasz\Moje dokumenty\Downloads\Nowy folder\mapkaark.pwn(4886) : error 029: invalid expression, assumed zero
C:\Documents and Settings\lukasz\Moje dokumenty\Downloads\Nowy folder\mapkaark.pwn(4886) : 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.


Linijka 4886
Kod:

if(statementUseBlock[playerid] == true) return SendClientMessage(playerid,0,"blokada wszechmocy"), 0;


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-12, 10:39


IgrexolonO







Wiek: 34
Na forum: 6809 dni
Posty: 1386

Piwa: 1062

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

Da?e? na g?rze mapy:

Kod:

new bool:statementUseBlock[MAX_PLAYERS];


?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-12, 11:15


arkopi







Wiek: 31
Na forum: 5579 dni
Posty: 177

Piwa: 60

Respekt: 50

Ostrzeżeń: 20%
dziala dziekuje bardzo:):)

Postaw piwo autorowi tego posta
 

 
Tagi: blokada :: cmd
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] blokada cmd 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