Jump to content
  • 0

Problema schimbare priza in Coins


SkyLeAs

Question

Problema intalnita (descriere):Salut am o problema vreau sa schimb priza intru job By Artist si nu reusesc Ero(area / rile) / warning-(ul / urile):

C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15611) : error 001: expected token: "]", but found ","
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15611) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15611) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15611) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Liniile de cod / sursa / script-ul(obligatoriu):
CMD:demisie(playerid, params[])
{
    if(!IsPlayerInRangeOfPoint(playerid,5.0,615.5042,-516.3146,16.8641)) return SendClientMessage(playerid,0xFF444499,"Apropiati-va de vestiarul apicultorilor!");
    if(PlayerOnJobLev[playerid] == true)
    {
        PlayerOnJobLev[playerid] = false,RemovePlayerAttachedObject(playerid, 1),SendClientMessage(playerid,-1, "{FFA500}Ati incheiat ziua de lucru.");
        new money = AllPlayerMedos[playerid]*10;
        //PlayerInfo[playerid][Coins]  PlayerInfo[playerid][InStunt] = 0, PlayerInfo[playerid][Coins] += 10 GivePlayerMoney(playerid, money)
        PlayerInfo[playerid, money][Coins],AllPlayerMedos[playerid] = 0,SetPlayerSkin(playerid,PlayerSavedSkinPas[playerid]);
        for(new i; i < sizeof(PasekaTD); i++) TextDrawHideForPlayer(playerid,PasekaTD[i]);
    }
	return 1;
}
Imagini / Video (optional):~
Ati incercat sa rezolvati singur?:Da am incercat si nam reusit 
la PlayerInfo[playerid, money][Coins],AllPlayerMedos[playerid] = 0,SetPlayerSkin(playerid,PlayerSavedSkinPas[playerid]);
erea asa
GivePlayerMoney(playerid, money),AllPlayerMedos[playerid] = 0,SetPlayerSkin(playerid,PlayerSavedSkinPas[playerid]);
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Pare cam ciudat scriptul tau . Incearca asa :

 

PlayerInfo[playerid][Money][Coins];AllPlayerMedos[playerid] = 0;SetPlayerSkin(playerid,PlayerSavedSkinPas[playerid]);

Nu sunt sigur ca o sa mearga .

Boss scriptul este alui Artist

iar eu am asa nu cu M mare si cu m mic 

       
        //PlayerInfo[playerid][Coins]  PlayerInfo[playerid][InStunt] = 0, PlayerInfo[playerid][Coins] += 10 GivePlayerMoney(playerid, money)
        GivePlayerMoney(playerid, money),AllPlayerMedos[playerid] = 0,SetPlayerSkin(playerid,PlayerSavedSkinPas[playerid]);

C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : warning 213: tag mismatch
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : warning 215: expression has no effect
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : error 001: expected token: ";", but found "["
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : warning 215: expression has no effect
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Catalin Marius\Desktop\XSGv5.pwn(15634) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Edited by Gotze
Link to comment
Share on other sites

  • 0

Ok . Si linia aceasta 

PlayerInfo[playerid][Money][Coins]

la ce ar trebui sa serveasca ? Ca vad ca nici nu i-ai dat ceva de facut .... doar ai trecut-o acolo .

Atunci cand playerul da /demisie sa-i dea cat coins a strans in job-ul sau.

Jobul este Apicultor. este postat aici pe forum la fs-uri.

Link to comment
Share on other sites

  • 0

Poi atunci fa asa :

PlayerInfo[playerid][Coins] = variabila unde se salveaza cati coins a facut la job;

Sau daca vrei ca , coins sa fie transformati in bani :

PlayerInfo[playerid][money] = modul de gandire pentru schimbare coins in bani;

Si inlocuiesti tu variabilele coins si money cum ai in Gamemdoe .

Link to comment
Share on other sites

  • 0

Poi atunci fa asa :

PlayerInfo[playerid][Coins] = variabila unde se salveaza cati coins a facut la job;

Sau daca vrei ca , coins sa fie transformati in bani :

PlayerInfo[playerid][money] = modul de gandire pentru schimbare coins in bani;

Si inlocuiesti tu variabilele coins si money cum ai in Gamemdoe .

Rezolvat locked

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.