19.05.2015, 13:42
I want to make that if the player is in range of ATM that he can do command /withdraw its all working except this for is messing with my else and I dont know how to fix it.
Error
Error
Код:
C:\Users\Rocky\Desktop\HomeServer\gamemodes\gmm-v1.pwn(720) : error 029: invalid expression, assumed zero
Код:
if(!strcmp(cmdtext, "/podigninovac")) { if(PlayerInfo[playerid][CardOwner]==0) return SendClientMessage(playerid,COLOR_RED,"Nemas bankovni racun,mozes ga otvoriti u banci za 500$!"); else if(IsPlayerInRangeOfPoint(playerid, 3.0, 1407.4142,1319.5991,1501.0840)) { for(new i=0;i<MAX_ATM;i++) { if(IsPlayerInRangeOfPoint(playerid, 1.0, AtmInfo[i][aPosX], AtmInfo[i][aPosY], AtmInfo[i][aPosZ],)) { if(PlayerInfo[playerid][CardOwner]==1) { ShowPlayerDialog(playerid,DIALOG_WITHDRAWM,DIALOG_STYLE_INPUT,""COL_SPLAVA"Cloud-Banka:"COL_BIJELA"Podizanje","Unesi sumu novca koju zelis podici:","Podigni","Odustani"); }else { SendClientMessage(playerid, COLOR_GREY, "Moras biti u banci ili kraj bankomata da bi podigao novac!"); } } } } return 1; }