Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: dodaj
1. EazyWorkshop nie dodaj MK
Witam poszukuje tutaj odpowiedzi na moje pytanie dlaczego w eazyWorhshop nie dodaje mk zabiera kase ale nie dodaje i nwm czym to jest spowodowane ?
2. [DM] Jak dodaj siebie do mysql
Cze??,
Jak wida? w temacie
Wgra?em GM its'a razem z MYSQL wszystko odbugowywalem poczym nie mam admina, i nie wiem jak doda? indeks zeby byc na /admins ?
Pomoze ktos ?
3. [INNE] DODAJ DJ
problem Z komend? /daj_dj Prosze pom??cie mi Z tym


warning 219: local variable "string2" shadows a variable at a preceding level
warning 219: local variable "string" shadows a variable at a preceding level
error 030: compound statement not closed at the end of file (started at line 79)

Prosz? Pom??cie Oto M?j Kod:


#include <a_samp>
#include <dudb>
#include <dini>

new gPlayerClass[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
new wDJ[MAX_PLAYERS];

//========== - Definicje - =====================
#define TEAM_DJ 1

#define DJ "DJ.ini"

#pragma tabsize 0



public OnPlayerCommandText(playerid, cmdtext[])
{
LINIA 79: new idx;
new string[256];
new string2[256];
new cmd[256];
new mpt[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/daj_dj", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /daj_DJ [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "%s zostal zatrudniony jako Dj", string);
SendClientMessage(playerid, COLOR_GREEN, string2);
string = strtok(cmdtext, idx);
dini_Set(DJ, nick, "1");
return 1;
}

if(strcmp(cmd, "/usun_dj", true) == 0 && IsPlayerAdmin(playerid)){
new string[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLO...