Jump to content
  • 0

Ajutor /ROB


capetanos

Question

Nick:capetanos

Problema: imi da erori la compilare

Erori / warnings:Nick:

D:\R2P.V.1.0\gamemodes\CG.pwn(22408) : error 029: invalid expression, assumed zero

D:\R2P.V.1.0\gamemodes\CG.pwn(22408) : warning 215: expression has no effect

D:\R2P.V.1.0\gamemodes\CG.pwn(22408) : error 001: expected token: ";", but found "]"

D:\R2P.V.1.0\gamemodes\CG.pwn(22408) : error 029: invalid expression, assumed zero

D:\R2P.V.1.0\gamemodes\CG.pwn(22408) : fatal error 107: too many error messages on one line

Lini/script:

if(Robbing[playerid] == 0)

Ai incercat sa rezolvi singur ?:da

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

if(strcmp(cmd, "/rob", true) == 0 || strcmp(cmd, "/robbank", true) == 0) //100% by TayFas, idea from LinkMania.

{

if(IsPlayerConnected(playerid))

{

if(PlayerToPoint(25.0,playerid,1424.1427,-1003.8551,1639.8943))

{

if(Robbing[playerid] == 0);

{

if(PlayerHasRobbedBank[playerid] == 0)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

SendClientMessage(playerid, COLOR_1RED, "Ramai aici pana colectezi banii.Dureaza 15 secunde");

SendClientMessage(playerid, COLOR_1BLUE, "Politia a fost anuntata de un angajat care a apasat pe butonu de panica! Dupa ce ai luat banii FUGI!");

TogglePlayerControllable(playerid, 0);

SetTimerEx("rob", 15000, 0, "d", playerid);

PlayerROB[playerid] = -1;

PlayerHasRobbedBank[playerid] = 1;

WantedPoints[playerid] += 10;

SetPlayerCriminal(playerid,255, "Ai Jefuit Banca");

SetPlayerAttachedObject( playerid, 0, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 );

}

else

{

SendClientMessage(playerid, COLOR_1RED, "Ai mai dat un rob pe ora asta! Asteapta payday-ul pentru a mai da rob!");

}

}

else

{

SendClientMessage(playerid, COLOR_1RED, "Ai dat deja /rob! Completeaza jefuirea aceasta mai intai!");

return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_1RED, "Nu esti langa seiful bancii pentru a-l jefuii!");

return 1;

}

}

}

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.