[Pomoc]Mod

Započeo Cimbur, Avgust 23, 2012, 01:09:46 PRE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta:Moj od 0.
dio skripta:Pozdrav, odlucio sam da napravim DeathMetch server od 0, i uradio sam malo stvari za pocetak, i kada compilujem izbaci mi error ; C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(7) : error 030: compound statement not closed at the end of file (started at line 5)

A cela skripta (za sada) je : #include <a_samp>

public OnGameModInit() { //Kada palimo server

    print("Knock Out DeathMetch") ;
    return 1;

Sto znaci, da linija 7 ne postoji, ali mi izbacuje error, pa mi to nije jasno, jel moze neko da mi kaze do cega je?
RESPECT :
Vegas & C++

E hvala, a kako da definiram boju, tj ocu da napravim belu boju? :D
RESPECT :
Vegas & C++

Najjednostavnije ti je samo stavit kod teksta koji zelis u boju {www.colorpicker.com tu odavde boju izaberi dodaj # na pocetak}

Hvala vam, uradio sam jos stvari, ali izbacuje errore :
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(68) : error 029: invalid expression, assumed zero
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(68) : error 004: function "OnPlayerText" is not implemented
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(71) : error 017: undefined symbol "text"
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(71) : error 017: undefined symbol "SentClientMessageToAll"
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(74) : error 030: compound statement not closed at the end of file (started at line 63)

Evo linija :
68 : public OnPlayerText(playerid, text[]) {
71 : format(string,sizeof(string),"%s: %s", pName(playerid), text); SentClientMessageToAll(bela, string);
74 : Ova linija ne postoji, ako neko hoce da pomogne, dacu celu skriptu na pm
RESPECT :
Vegas & C++

Pa dao sam ti, ako hoces celu skriptu na pm, reci
RESPECT :
Vegas & C++

To smo resili, ali ostalo je jos 4 errora :
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(68) : error 029: invalid expression, assumed zero
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(68) : error 004: function "OnPlayerText" is not implemented
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(72) : error 017: undefined symbol "text"
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(72) : error 017: undefined symbol "SentClientMessageToAll"

Linije :
68 : public OnPlayerText(playerid, text[])
72 : format(string,sizeof(string),"%s: %s", pName(playerid), text); SentClientMessageToAll(bela, string);
RESPECT :
Vegas & C++

Hvala puno, a ova 3 jos, izvini na smaranju
RESPECT :
Vegas & C++

C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(72) : error 029: invalid expression, assumed zero
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(72) : error 004: function "OnPlayerText" is not implemented
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(76) : error 017: undefined symbol "text"
Opet errori, evo linija :
72 : public OnPlayerText(playerid, text[])
76 : format(string,sizeof(string),"%s: %s", pName(playerid), text); SendClientMessageToAll(bela, string);
RESPECT :
Vegas & C++

public OnPlayerText(playerid, text[])
{
   new string[256];
   //-----------Slanje Poruke svim igracima-----------------------//
   format(string,sizeof(string),"%s: %s", pName(playerid), text); SendClientMessageToAll(bela, string);
}
return 0;
}

Izvoli
RESPECT :
Vegas & C++

C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(72) : error 029: invalid expression, assumed zero
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(72) : error 004: function "OnPlayerText" is not implemented
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(76) : error 017: undefined symbol "text"
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(77) : warning 217: loose indentation
C:\Users\Luka\Desktop\DM\gamemodes\KnockOut DM.pwn(79) : error 030: compound statement not closed at the end of file (started at line 67)


Ne znam sta mu je :S
RESPECT :
Vegas & C++


E jos jedno pitanje, posto sam sve pobrisao iz foldera, sem pawna i gamemod, i ovih server.cfg i to, ali ostalo sam obrisao, i nece da mi otvori  samp-server fail, ne znam sto, ako neko zna
RESPECT :
Vegas & C++

Pomoc?:/
RESPECT :
Vegas & C++