Jump to content
  • 0

pomoc Vodicak


Guest sworm

Dotaz

Cafte maaam vlastni vodicak ale hadze mi 4errory a 1 warning newite co to je ?

 

C:\DOCUME~1\user\Plocha\zaloha.pwn(680) : warning 204: symbol is assigned a value that is never used: "current"

C:\DOCUME~1\user\Plocha\zaloha.pwn(680 -- 709) : error 055: start of function body without function header

C:\DOCUME~1\user\Plocha\zaloha.pwn(680 -- 711) : error 010: invalid function or declaration

C:\DOCUME~1\user\Plocha\zaloha.pwn(680 -- 712) : error 010: invalid function or declaration

C:\DOCUME~1\user\Plocha\zaloha.pwn(680 -- 712) : fatal error 107: too many error messages on one line

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

4 Errors.

Link to comment
Share on other sites

11 odpovědí na tuto otázku

Recommended Posts

  • 0

Nooo tak tu su riadky.. od 680 po 712

 

 

current = GetPlayerMenu(playerid);

{

switch(row)

{

case 0:{

if(GetPlayerMoney(playerid) < 1500){

if(ridicak[playerid] == 0){

SendClientMessage(playerid, COLOR_RED, "Nemáš peniaze na vodičák. ");

}

}

if(ridicak[playerid] == 1) {

SendClientMessage(playerid, COLOR_RED,"Už máš vodičák. ");

}

if(GetPlayerMoney(playerid) >= 1500){

if(ridicak[playerid] == 0) {

SendClientMessage(playerid, COLOR_RED,"Kúpil si si vodičák. ");

GivePlayerMoney(playerid, -1500);

ridicak[playerid] = 1;

}

}

}

}

}

}

 

 

 

//MENU Policia

 

{

 

current = GetPlayerMenu(playerid);

if(current == Policia)

Link to comment
Share on other sites

  • 0

skus toto :lol:

if (Current == ridicakmenu ) {
switch(row) {
case 0:{
new pname[MAX_PLAYER_NAME];
{
if (ridicak[playerid] == 1) {
SendClientMessage(playerid, COLOR_RED, "[ ! ]Už máš řidičák!");//kdyz vleze do pickupu a uz ma ridicak
}else{
if(GetPlayerMoney(playerid) < 4999) {
SendClientMessage(playerid, COLOR_YELLOW, "[ ! ]Nemáš dost peněz!(5000$)");///kdyz nema prasulky
}else{
GetPlayerName(playerid, pname, 30);
format(string, 256, "[ ! ] Hráč %s si zakoupil řidičák!", pname);//kdyz si koupil ridicak
SendClientMessageToAll(COLOR_YELLOW,string);
GivePlayerMoney(playerid,-5000);
ridicak[playerid] = 1;
}
}
}
}
}
}

 

A Opatrne Mam to v Tuning Town 0.5 :lol:

Link to comment
Share on other sites

  • 0
FreeWall":2iq7q441]to je prdel, místo toho abyste mu to opravili nebo řekli co má špatně tak sem radši hodíte něco svího abyste se s tim nesrali, vid across :|

 

Presne tak :d radsi pomoz freewalle a nebuzeruj acrosse ze mu tu dal neco sveho :d asi taky nevi jak to opravit :d

Link to comment
Share on other sites

  • 0

zkus to takhle :

 

new Menu:current;
current = GetPlayerMenu(playerid);
if(current == Policia){
switch(row){
case 0:{
if(GetPlayerMoney(playerid) < 1500){
if(ridicak[playerid] == 0){
SendClientMessage(playerid, COLOR_RED, "Nemáš peniaze na vodičák. 	");
}
}
if(ridicak[playerid] == 1) {
SendClientMessage(playerid, COLOR_RED,"Už máš vodičák. ");
}
if(GetPlayerMoney(playerid) >= 1500){
if(ridicak[playerid] == 0) {
SendClientMessage(playerid, COLOR_RED,"Kúpil si si vodičák. ");
GivePlayerMoney(playerid, -1500);
ridicak[playerid] = 1;
}}}}}

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...