Pomoc:4 errora,a uradim kao na klipu sve isto


Započeo Mirnes_Sarajlic, Februar 21, 2014, 19:06:40 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Mod od 0
Detaljan opis problema:Ovako, ja uradim sve kao sto je na ovom klipu http://www.youtube.com/watch?v=lCc58qoItX0 ali nece da se kopira vec mi dodju ova cetiri errora
C:\Users\prefix ^.-\Desktop\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(23 -- 24) : error 001: expected token: ")", but found ";"
C:\Users\prefix ^.-\Desktop\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(31) : error 021: symbol already defined: "print"
C:\Users\prefix ^.-\Desktop\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(36) : error 001: expected token: ";", but found "-identifier-"
C:\Users\prefix ^.-\Desktop\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(38) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Dio skripte:Sve sto je on radio u videu ispod!
main() (
	print(" ");
	print("-----------------------");
	printf(        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %S", SKRIOTED_BY);
 	prift("-----------------------");
 	print(" "); )
	)
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	
	return 1; )

main() {
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %s", SKRIPTED_BY);
 	prift("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}
69

Citat: [UG]C++ poslato Februar 21, 2014, 19:10:15 POSLE PODNE
main() {
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %s", SKRIPTED_BY);
 	prift("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

Nece opet

Citat: Lenon poslato Februar 22, 2014, 09:07:49 PRE PODNE
probaj ovako:

main() {
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION);
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %s", SKRIPTED_BY);
 	prift("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

Nasao sam jedno i popravio,ali sad izbacuje 3 errora
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(30) : error 017: undefined symbol "prinft"
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(36) : error 001: expected token: ";", but found "{"
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(38) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.

main() {
	print(" ");
	print("-----------------------");
	print("        %s", SERVER_NAME);
	print("      VERZIJA %s", SCRIPT_VERSION);
	print("      VERZIJA %s", LAST_UPDATE);
	print("      NASKRIPTAO: %s", SKRIPTED_BY);
 	print("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

Kako ce ti biti dobro kada si stavljao i fulao slova " printf " "prif"
Pokusaj ovako sto sam ti ja sada poslao cc

Citat: RoleX :) poslato Februar 22, 2014, 11:44:13 PRE PODNE
main() {
	print(" ");
	print("-----------------------");
	print("        %s", SERVER_NAME);
	print("      VERZIJA %s", SCRIPT_VERSION);
	print("      VERZIJA %s", LAST_UPDATE);
	print("      NASKRIPTAO: %s", SKRIPTED_BY);
 	print("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

Kako ce ti biti dobro kada si stavljao i fulao slova " printf " "prif"
Pokusaj ovako sto sam ti ja sada poslao cc
To sam bio primijetio sada ovo izbacuje
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(26) : warning 202: number of arguments does not match definition
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(27) : warning 202: number of arguments does not match definition
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(28) : warning 202: number of arguments does not match definition
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(29) : warning 202: number of arguments does not match definition
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(36) : error 001: expected token: ";", but found "{"
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(38) : error 010: invalid function or declaration
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

main() {
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME");
	printf("      VERZIJA %s", SCRIPT_VERSION");
	printf("      VERZIJA %s", LAST_UPDATE");
	printf("      NASKRIPTAO: %s", SKRIPTED_BY");
 	print("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

Eh ovako pokusaj ako ne moze onda ne znam,aj pogledaj oako pa mi ajvi zaboravio si staviti na kraju " " moras biti pazljiv kad nesto gledas.

Citat: Lenon poslato Februar 23, 2014, 08:24:26 PRE PODNE
"print" i "printf" se razlikuju, probaj sam zakljuciti zasto: http://wiki.sa-mp.com/wiki/Print
http://wiki.sa-mp.com/wiki/Printf

stavi ovako:

main() {
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION);
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %s", SKRIPTED_BY);
 	print("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(36) : error 001: expected token: ";", but found "{"
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(38) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Probaj ovako:

main() 
{
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION);
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %s", SKRIPTED_BY);
 	print("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

Citat: Maxwellâ,,¢ poslato Februar 23, 2014, 20:03:07 POSLE PODNE
Probaj ovako:

main() 
{
	print(" ");
	print("-----------------------");
	printf("        %s", SERVER_NAME);
	printf("      VERZIJA %s", SCRIPT_VERSION);
	printf("      VERZIJA %s", LAST_UPDATE);
	printf("      NASKRIPTAO: %s", SKRIPTED_BY);
 	print("-----------------------");
 	print(" ");
}
//wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww > OnGameModeInit

public OnGameModeInit
{
	AddPlayerClass(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	return 1;
}

C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(37) : error 001: expected token: ";", but found "{"
C:\Users\prefix ^.-\Desktop\Ne treba mi\samp03z_svr_R1_win32\gamemodes\BFRP.pwn(39) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


Citat: Maxwellâ,,¢ poslato Februar 24, 2014, 15:34:56 POSLE PODNE
Koje su to linije?
37 i 39
EDIT: tj. ove 37:
{
39:
   return 1;
Poslednja Izmena: Februar 24, 2014, 15:44:50 POSLE PODNE od Mirnes_Sarajlic