19.01.2013, 05:07
I kind needed this done for tomorrow, and I am stuck on one fucking part. I am making a password system for gates and when you type /gate open, a dialog comes up for pass and whatever. I tried the script with a toll gate system and it worked fine as well as just /gate open.
CODE OF BUG:
CODE OF ERROR
IDC about the warnings, and line 85 is ShowPlayerDialog.
CODE OF BUG:
Код:
public OnDialogResponse(playerid, pdlotmenu, 1, inputtext[lspd]) { if(dialogid == pdlotmenu && response == 1) { if(inputtext[0] == 'lspd') { MoveObject(pdlot,1544.6999512,-1630.9000244,13.1000004,5.0,0,34.749847412109,89.999969482422); } else { SendClientMessage(playerid,0xFF0000AA,"INCORRECT PASSWORD"); } return 1; } } return 0; } } else { SendClientMessage(playerid, 0xFF0000AA, "You Are Not Near A Gate!"); } } }
Код:
C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(52) : warning 217: loose indentation C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(56) : warning 217: loose indentation C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(66) : warning 202: number of arguments does not match definition C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : error 029: invalid expression, assumed zero C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : warning 215: expression has no effect C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : error 001: expected token: ";", but found ")" C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : error 029: invalid expression, assumed zero C:\Users\Matt\Desktop\SAMP\filterscripts\gates.pwn(85) : fatal error 107: too many error messages on one line