Jump to content

[ZOZNAM]Errory a Warningy


Guest Airsoft3r

Recommended Posts

JO pěkný dík sme to opravil a další 3 errory u stejnýho řádku :d

 

(1337) : error 028: invalid subscript (not an array or too many subscripts): "Spawned"

(1337) : warning 215: expression has no effect

(1337) : error 001: expected token: ";", but found

(1337) : error 029: invalid expression, assumed zero

?? :d

Link to comment
Share on other sites

  • Replies 120
  • Created
  • Last Reply

Top Posters In This Topic

new Spawned [MAX_PLAYERS]; //smaž tu mezeru

 

takto:

new Spawned[MAX_PLAAYERS];

Super uz mi to ide mal som zle suradnice .. a asi som poplietol ID pickupu lebo sa mi tam toci naraznik od sultanu :d :D :d peter velmi dakujem za strpenie somnou. :)

není zač ;)

Link to comment
Share on other sites

jj konečne sem to opravil mod dík ješte my to vyházelo 3 errory ale to sem opravil :-) moc dík

 

-- sob 04. pro 2010 15:58:24 --

 

Jo můžu se ješte zeptat jak napravim toto?

: warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

: warning 235: public function lacks forward declaration (symbol "OnPlayerInfoChange")

: warning 204: symbol is assigned a value that is never used: "cara"

 

? pls

 

 

NIC uz ok mam to xD

Link to comment
Share on other sites

pls help robil som si PM a dopadlo to tak ze v onplayercomandtext mi na riadok :

 

dcmd(pm,2, cmdtext);

 

pise toto :

 

(856) : error 012: invalid function call, not a valid address

(856) : warning 215: expression has no effect

(856) : warning 215: expression has no effect

(856) : warning 215: expression has no effect

(856) : error 001: expected token: ";", but found ")"

(856) : error 029: invalid expression, assumed zero

(856) : fatal error 107: too many error messages on one line

 

"help" "help"

 

-- ned 19. pro 2010 10:42:16 --

 

najde sa niekto kto mi pomoze ?

Link to comment
Share on other sites

nad tím mam akurát /unlock

if (strcmp(cmdtext, "/unlock", true)==0) {
	if(IsPlayerInAnyVehicle(playerid)) {
		new i;
		for(i=0;i			SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
		}
		SendClientMessage(playerid,0x008000AA,"Vozidlo odomknuté");

	}
	else {
		SendClientMessage(playerid,0x008000AA,"Niesi vo vozidle!");
	}
  dcmd(pm,2, cmdtext);
  dcmd(inzerat,7, cmdtext);
  dcmd(afk,3, cmdtext);
  dcmd(givecash,8, cmdtext);
  }
  return 1;
  }

Link to comment
Share on other sites

if (strcmp(cmdtext, "/unlock", true)==0) 
{
     if(IsPlayerInAnyVehicle(playerid)) 
    {
        for(new i;i     {
        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
     }
        SendClientMessage(playerid,0x008000AA,"Vozidlo odomknuté");

     } else {
        SendClientMessage(playerid,0x008000AA,"Niesi vo vozidle!");
     }
}
  dcmd(pm,2, cmdtext);
  dcmd(inzerat,7, cmdtext);
  dcmd(afk,3, cmdtext);
  dcmd(givecash,8, cmdtext);

  return 1;
  }

Link to comment
Share on other sites

mam to teraz takto ale nic mi to nepomohlo

 

if (strcmp(cmdtext, "/unlock", true)==0) {
	if(IsPlayerInAnyVehicle(playerid)) {
		new i;
		for(i=0;i			SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
		}
		SendClientMessage(playerid,0x008000AA,"Vozidlo odomknuté");

	}
	else {
		SendClientMessage(playerid,0x008000AA,"Niesi vo vozidle!");
	return 1;
	}
  dcmd(pm,2, cmdtext);
  }
  dcmd(inzerat,7, cmdtext);
  }
  dcmd(afk,3, cmdtext);
  }
  dcmd(givecash,8, cmdtext);
  }
  return 1;
  }

 

//edit aj to co si mi poskitol ty David mi nepomohlo :problem:

Link to comment
Share on other sites

public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(cmdtext, "/unlock", true)==0) 
{
     if(IsPlayerInAnyVehicle(playerid)) 
    {
        for(new i;i     {
        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
     }
        SendClientMessage(playerid,0x008000AA,"Vozidlo odomknuté");

     } else {
        SendClientMessage(playerid,0x008000AA,"Niesi vo vozidle!");
     }
return 1;
}
  dcmd(pm,2, cmdtext);
  dcmd(inzerat,7, cmdtext);
  dcmd(afk,3, cmdtext);
  dcmd(givecash,8, cmdtext);

  return 0;
  }

 

David: musel jsem :p:d

Link to comment
Share on other sites

":3lgcux3l]
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(cmdtext, "/unlock", true)==0) 
{
     if(IsPlayerInAnyVehicle(playerid)) 
    {
        for(new i;i     {
        SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
     }
        SendClientMessage(playerid,0x008000AA,"Vozidlo odomknuté");

     } else {
        SendClientMessage(playerid,0x008000AA,"Niesi vo vozidle!");
     }
return 1;
}
  dcmd(pm,2, cmdtext);
  dcmd(inzerat,7, cmdtext);
  dcmd(afk,3, cmdtext);
  dcmd(givecash,8, cmdtext);

  return 0;
  }

 

David: musel jsem :p:d

 

nejde :cry::problem:

Link to comment
Share on other sites

Cafte potrebujem HELP...

 

 

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "CPP"

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "Menu"

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "Menu2"

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "Menu3"

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "Menu4"

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "Menu5"

C:\Documents and Settings\user\Desktop\MOD2.pwn(1266) : warning 203: symbol is never used: "PlayerInfo"

 

 

RIADOK:

Ten tam ani nemam

 

 

Tak prosím poradte mi :)

Link to comment
Share on other sites

Ahojte pomozte niekto .... "help"

 

(234) : warning 213: tag mismatch

(245 -- 246) : warning 215: expression has no effect

(246) : error 001: expected token: ";", but found "}"

 

1 Error.

 

public OnPlayerSelectedMenuRow(playerid, row)

{

if (Current == tvemenu ) { - RIADOK 234

switch(row) {

case 0:{

if(GetPlayerMoney(playerid) < 1999) {// nemá peníze

SendClientMessage(playerid, COLOR_RED, "[ ! ] Nemáš peníze [ 2000,- ].");

}

else if (Ridicak[playerid] == 1) {// ze už má oidieák

SendClientMessage(playerid, COLOR_ORANGE, "[ ! ] Už máš oidieák!");

}else{

GivePlayerMoney(playerid,-2000);

SendClientMessage(playerid,COLOR_BLUE,"[ ! ] Kúpil si si oidieak!");

Ridicak[playerid] == 1 // dostane ridicak - RIADOK 245

} - RIADOK 246

}

}

}

return 1;

}

 

"help" "help" "help" "help" "help"

Link to comment
Share on other sites

public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:Current = GetPlayerMenu(playerid);
if (Current == tvemenu ) {  - RIADOK 234
switch(row) {
case 0:{
if(GetPlayerMoney(playerid) < 1999) {
SendClientMessage(playerid, COLOR_RED, "[ ! ] Nemáš peníze [ 2000,- ].");
}
else if (Ridicak[playerid] == 1) {
SendClientMessage(playerid, COLOR_ORANGE, "[ ! ] Už máš oidieák!");
}else{
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid,COLOR_BLUE,"[ ! ] Kúpil si si oidieak!");
Ridicak[playerid] == 1;
} 
}
}
}
return 1;
}  

Link to comment
Share on other sites

C:\Users\User2\Desktop\Moje vynalezi\GM.pwn(234) : warning 219: local variable "Current" shadows a variable at a preceding level

C:\Users\User2\Desktop\Moje vynalezi\GM.pwn(246) : warning 215: expression has no effect

C:\Users\User2\Desktop\Moje vynalezi\GM.pwn(413) : warning 203: symbol is never used: "Current"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

3 Warnings.

 

234 - new Menu:Current = GetPlayerMenu(playerid);

413 - NEMAM :hehe:

Link to comment
Share on other sites

warning 234: local variable "string" shadows a variable at a preceding level

=

2x definovany: new string[128];

=

mate napr new string hore v mode a potom new string v prikaze

=

staci jednu definiciu zmazat.

 

warning 413 :mas new ale nemas ho nikde pouzite

takze ho vymaz.

 

// a inac mas to na prvej strane :klidek:

Link to comment
Share on other sites

Cafte prosíím HELP "help"

 

ERRORY

 

C:\Documents and Settings\user\Desktop\GGM.pwn(54) : error 001: expected token: ";", but found "{"

C:\Documents and Settings\user\Desktop\GGM.pwn(63) : error 021: symbol already defined: "OnGameModeInit"

C:\Documents and Settings\user\Desktop\GGM.pwn(637) : error 017: undefined symbol "Menu"

C:\Documents and Settings\user\Desktop\GGM.pwn(637) : error 017: undefined symbol "Autoskola"

C:\Documents and Settings\user\Desktop\GGM.pwn(637) : error 029: invalid expression, assumed zero

C:\Documents and Settings\user\Desktop\GGM.pwn(637) : fatal error 107: too many error messages on one line

 

 

RIADKY:

 

54: {

63: {

637:Menu[Autoskola] = CreateMenu("~r~A~w~utoskola", 1, 50.0, 180.0, 200.0, 200.0);

 

 

 

Prosím HELP "help" "help" "help" "help" "help" diki

Link to comment
Share on other sites

Teraz ešte toto

 

 

C:\Documents and Settings\user\Desktop\GGM.pwn(47) : error 029: invalid expression, assumed zero

C:\Documents and Settings\user\Desktop\GGM.pwn(58) : error 021: symbol already defined: "print"

C:\Documents and Settings\user\Desktop\GGM.pwn(66) : error 021: symbol already defined: "OnGameModeInit"

C:\Documents and Settings\user\Desktop\GGM.pwn(66) : error 029: invalid expression, assumed zero

C:\Documents and Settings\user\Desktop\GGM.pwn(66 -- 68) : warning 215: expression has no effect

C:\Documents and Settings\user\Desktop\GGM.pwn(68) : error 001: expected token: ";", but found "-identifier-"

C:\Documents and Settings\user\Desktop\GGM.pwn(68) : fatal error 107: too many error messages on one line

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...